1.修改代理的拦截策略,将IP与域名拦截整合为一个serviceId与functionId,可组合配置;
2.修改部分界面判断登录用户是否为超级用户的判断依据。
This commit is contained in:
@@ -52,7 +52,7 @@ public class PxyObjSpoofingIpPool extends BaseIpCfg{
|
||||
this.ipAddress = ipAddress;
|
||||
}
|
||||
public Integer getGroupId() {
|
||||
if(groupId==null || groupId==0){
|
||||
if((groupId==null || groupId==0) && cfgId!=null){
|
||||
groupId=cfgId.intValue();
|
||||
}
|
||||
return groupId;
|
||||
|
||||
@@ -486,7 +486,7 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
||||
entity.setUserRegion1(StringUtil.isEmpty(entity.getUserRegion1()) ? "0":entity.getUserRegion1());
|
||||
maatCfg.setUserRegion(Constants.INTERCEPT_IP_MONIT_USER_REGION_KEY+"="+entity.getUserRegion1());
|
||||
//监测的域名需下发拦截强度
|
||||
if(entity.getFunctionId().equals(201)){
|
||||
if(entity.getFunctionId().equals(200)){
|
||||
entity.setUserRegion5(StringUtil.isEmpty(entity.getUserRegion5()) ? "1":entity.getUserRegion5());
|
||||
if(StringUtil.isEmpty(maatCfg.getUserRegion())) {
|
||||
maatCfg.setUserRegion(Constants.INTERCEPT_DOMAN_INTENSITY_USER_REGION_KEY+"="+entity.getUserRegion5());
|
||||
|
||||
Reference in New Issue
Block a user