修复Intercept Policy自定义域{}

This commit is contained in:
wangwei
2019-06-05 15:23:03 +08:00
parent 452e295d8a
commit 77059b8d2c
2 changed files with 9 additions and 6 deletions

View File

@@ -475,10 +475,7 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
}
//entity.getHttpUrlList().get(0).getCfgKeywords();
domainUserRegion=domainUserRegion+";"+Constants.USERREGION_DOMAIN_STR+"="+domainStr;
if(entity.getServiceId().equals(521)) {
domainUserRegion="{}";
}
domainUserRegion=domainUserRegion+";"+Constants.USERREGION_DOMAIN_STR+"="+domainStr;
HttpUrlCfg cfg = new HttpUrlCfg();
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
cfg.setTableName(HttpUrlCfg.getTablename());
@@ -489,6 +486,10 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
strRegionList=map.get("dstList");
}
}
//设置intercept Policy自定义域
if(entity.getServiceId().equals(521)) {
domainUserRegion="{}";
}
//保存区域IP信息
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
if(!StringUtil.isEmpty(areaIpCfgList)){