优化代码 public String handleExtendedParamJSONObject body JSONObject featureMap String uid lotus增加language String userLanguage = null; if StringUtilsisNotBlankuid user
public String handleExtendedParam(JSONObject body, JSONObject featureMap, String uid) { //lotus增加language String userLanguage = StringUtils.isNotBlank(uid) ? UserRedisUtils.getUserLanguage(uid, Constants.LANGUAGE_DEVICE_TYPE) : null; log.info("Lotus查询用户语言设置,uid:" + uid + " ; userLanguage: " + userLanguage); featureMap.put(LANGUAGE, StringUtils.defaultIfBlank(userLanguage, releaseOssBackerConfig.getSystemAppLanguage()));
//lotus增加sessionId
featureMap.put(Constants.SESSION_ID, body.getString(Constants.SESSION_ID));
return featureMap.toJSONString();
}
原文地址: https://www.cveoy.top/t/topic/ZBv 著作权归作者所有。请勿转载和采集!