修正国家代理替换动作的自定义域参数格式

This commit is contained in:
zhangwei
2018-11-28 11:32:16 +08:00
parent d2a41ef087
commit ae7a741be3

View File

@@ -251,7 +251,12 @@ public class ConfigSynchronizationService extends BaseService{
for(int r=0;r<regionArray.length;r++){
Field field = aClass.getDeclaredField(regionArray[r]);
field.setAccessible(true);
value += "/"+replaceContentEscape(field.get(cfg)==null?"":field.get(cfg).toString());//自定义域以/分割时的处理
if(n.get("regionKey").equals("substitute")){
value += "/"+replaceContentEscape(field.get(cfg)==null?"":field.get(cfg).toString());//自定义域以/分割时的处理
}else{
value += replaceContentEscape(field.get(cfg)==null?"":field.get(cfg).toString());
}
}
userRegion += n.get("regionKey")+"="+value+Constants.USER_REGION_SPLIT;
}else{
@@ -425,7 +430,7 @@ public class ConfigSynchronizationService extends BaseService{
String json=gsonToJson(maatBean);
// logger.info(json);
//调用服务接口配置全量更新
// JSONObject result = ConfigServiceUtil.configSync(json,1,entity.getServiceId(),null,(hasData?null:"FINISHED"));
JSONObject result = ConfigServiceUtil.configSync(json,1,entity.getServiceId(),null,(hasData?null:"FINISHED"));
}
return hasData;
}