修正allow_http2的显示、bypass的自定义域改成null的json

This commit is contained in:
wangwei
2019-06-05 14:37:04 +08:00
parent db7049c041
commit 452e295d8a
4 changed files with 26 additions and 16 deletions

View File

@@ -254,7 +254,10 @@ public class SchedulerTaskUtil {
if(entity.getServiceId().equals(656)) {
userRegion = BaseService.setUserRegionOfMantipulateCfg(cfg, userRegion);
}
//Intercept Policy
else if(entity.getServiceId().equals(521)) {
userRegion="{}";
}
for(AsnIpCfg ip:asnIpList){//asn不需要再次获取regionId,groupId
if(ip.getAsnIpGroup().toString().equals(cfg.getUserRegion4())){//根据组号对应
ip.setIsValid(entity.getIsValid());

View File

@@ -432,6 +432,8 @@ public class ConfigSynchronizationService extends BaseService{
if(!StringUtil.isEmpty(cfg.getUserRegion1())&&cfg.getUserRegion1().startsWith("{")) {
userRegion=cfg.getUserRegion1();
}
}else if(entity.getServiceId().equals(521)) {
userRegion="{}";
}else{
/*if(regionKey.equals("keyring_id") && StringUtil.isEmpty(value)){
value = "0";

View File

@@ -476,6 +476,9 @@ 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="{}";
}
HttpUrlCfg cfg = new HttpUrlCfg();
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
cfg.setTableName(HttpUrlCfg.getTablename());