pxy ip控制审核重定向字段添加
This commit is contained in:
@@ -228,6 +228,19 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
}else if(Constants.SERVICE_IP_RATELIMIT==cfg.getServiceId().intValue()){
|
}else if(Constants.SERVICE_IP_RATELIMIT==cfg.getServiceId().intValue()){
|
||||||
maatCfg.setUserRegion(Constants.USERREGION_RATE_LIMIT+"="+cfg.getRatelimit());
|
maatCfg.setUserRegion(Constants.USERREGION_RATE_LIMIT+"="+cfg.getRatelimit());
|
||||||
}
|
}
|
||||||
|
if(!StringUtil.isEmpty(cfg.getUserRegion1())){
|
||||||
|
String userRegion = "";
|
||||||
|
if(cfg.getUserRegion1().startsWith(Constants.REDIRECT_RESPONSE_CODE_STARTWITH)){
|
||||||
|
userRegion = Constants.REDIRECT_RESPONSE_CODE_KEY+"="+cfg.getUserRegion1()+
|
||||||
|
Constants.USER_REGION_SPLIT+
|
||||||
|
Constants.REDIRECT_URL_KEY+"="+cfg.getUserRegion2();
|
||||||
|
}else{
|
||||||
|
userRegion = Constants.REDIRECT_RESPONSE_CODE_KEY+"="+cfg.getUserRegion1()+
|
||||||
|
Constants.USER_REGION_SPLIT+
|
||||||
|
Constants.REDIRECT_CONTENT_KEY+"="+cfg.getUserRegion2();
|
||||||
|
}
|
||||||
|
maatCfg.setUserRegion(userRegion);
|
||||||
|
}
|
||||||
configCompileList.add(maatCfg);
|
configCompileList.add(maatCfg);
|
||||||
maatBean.setOpAction(Constants.INSERT_ACTION);
|
maatBean.setOpAction(Constants.INSERT_ACTION);
|
||||||
maatBean.setConfigCompileList(configCompileList);
|
maatBean.setConfigCompileList(configCompileList);
|
||||||
|
|||||||
Reference in New Issue
Block a user