修改app policy配置导入并下发userRegion.

This commit is contained in:
zhangwenqing
2019-01-10 19:04:38 +08:00
parent daa2e55682
commit 6b07a6bd60

View File

@@ -2404,7 +2404,7 @@ public abstract class BaseService {
}else if(regionDict.getFunctionId()==407) {// Protocol Identify }else if(regionDict.getFunctionId()==407) {// Protocol Identify
maatCfg.setUserRegion(Constants.PROTO_ID_REGION + "=" + _cfg.getAppCode()); maatCfg.setUserRegion(Constants.PROTO_ID_REGION + "=" + _cfg.getAppCode());
}else if(regionDict.getFunctionId()==63) {// APP Policy }else if(regionDict.getFunctionId()==63) {// APP Policy
maatCfg.setUserRegion(Constants.APP_ID_REGION + "=" + _cfg.getAppCode()+Constants.USER_REGION_SPLIT+Constants.APP_VIGNORE_USER_REGION_KEY+"=1"); maatCfg.setUserRegion(Constants.APP_ID_REGION + "=" + _cfg.getAppCode()+Constants.USER_REGION_SPLIT+"config_id="+_cfg.getCompileId());
}else if(regionDict.getFunctionId()==408) {// Behavior Identify }else if(regionDict.getFunctionId()==408) {// Behavior Identify
maatCfg.setUserRegion(Constants.PROTO_ID_REGION + "=" + _cfg.getAppCode()+Constants.USER_REGION_SPLIT+Constants.APP_VIGNORE_USER_REGION_KEY+"=1"); maatCfg.setUserRegion(Constants.PROTO_ID_REGION + "=" + _cfg.getAppCode()+Constants.USER_REGION_SPLIT+Constants.APP_VIGNORE_USER_REGION_KEY+"=1");
}else if(regionDict.getFunctionId()==301) {// Anti DDOS }else if(regionDict.getFunctionId()==301) {// Anti DDOS