修正国家代理替换动作的自定义域参数格式
This commit is contained in:
@@ -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);
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user