修复文件劫持、注入、阻断页面、镜像若干bug
This commit is contained in:
@@ -3729,8 +3729,15 @@ public class BaseController {
|
||||
page.setPageNo(1);
|
||||
page.setLastPage(false);
|
||||
List<BaseCfg> list = pxyObjKeyringService.findPage(page,searchObjKeyringCfg).getList();
|
||||
List<BaseCfg> result = new ArrayList();
|
||||
for(int i=0;i<list.size();i++){
|
||||
PxyObjKeyring temp=(PxyObjKeyring)list.get(i);
|
||||
if("-1".equals(temp.getUserRegion4()) || temp.getUserRegion4()==null ){
|
||||
result.add(temp);
|
||||
}
|
||||
}
|
||||
if(!StringUtil.isEmpty(list)){
|
||||
hasData = commonPolicyService.batchDeleteMaatData(cfgList, page, batchCfg, list, hasData);
|
||||
hasData = commonPolicyService.batchDeleteMaatData(cfgList, page, batchCfg, result, hasData);
|
||||
}else{
|
||||
hasData = false;
|
||||
}
|
||||
@@ -3771,7 +3778,7 @@ public class BaseController {
|
||||
List<BaseCfg> result = new ArrayList();
|
||||
for(int i=0;i<list.size();i++){
|
||||
ProxyFileHijackCfg temp=(ProxyFileHijackCfg)list.get(i);
|
||||
if(temp.getQuote() == -1 || temp.getQuote() ==0){
|
||||
if("-1".equals(temp.getQuote()) || temp.getQuote()==null ){
|
||||
result.add(temp);
|
||||
}
|
||||
}
|
||||
@@ -3790,7 +3797,7 @@ public class BaseController {
|
||||
List<BaseCfg> result = new ArrayList();
|
||||
for(int i=0;i<list.size();i++){
|
||||
ProxyFileInsertScriptCfg temp=(ProxyFileInsertScriptCfg)list.get(i);
|
||||
if(temp.getQuote() == -1 || temp.getQuote() ==0){
|
||||
if("-1".equals(temp.getQuote()) || temp.getQuote()==null ){
|
||||
result.add(temp);
|
||||
}
|
||||
}
|
||||
@@ -3806,9 +3813,16 @@ public class BaseController {
|
||||
while(hasData){
|
||||
page.setPageNo(1);
|
||||
page.setLastPage(false);
|
||||
List list = proxyFileTrafficMirrorService.findPage(page,searchFileTrafficMirrorCfg).getList();
|
||||
List list = proxyFileTrafficMirrorService.findPage(page,searchFileTrafficMirrorCfg).getList();
|
||||
List<BaseCfg> result = new ArrayList();
|
||||
for(int i=0;i<list.size();i++){
|
||||
ProxyFileTrafficMirrorCfg temp=(ProxyFileTrafficMirrorCfg)list.get(i);
|
||||
if("-1".equals(temp.getUserRegion5()) || temp.getUserRegion5()==null ){
|
||||
result.add(temp);
|
||||
}
|
||||
}
|
||||
if(!StringUtil.isEmpty(list)){
|
||||
hasData = commonPolicyService.batchDeleteMaatData(cfgList, page, batchCfg, list, hasData);
|
||||
hasData = commonPolicyService.batchDeleteMaatData(cfgList, page, batchCfg, result, hasData);
|
||||
}else{
|
||||
hasData = false;
|
||||
}
|
||||
@@ -3832,9 +3846,16 @@ public class BaseController {
|
||||
while(hasData){
|
||||
page.setPageNo(1);
|
||||
page.setLastPage(false);
|
||||
List list = proxyFileResponsePageService.findPage(page,searchFileResponsePageCfg).getList();
|
||||
List list = proxyFileResponsePageService.findPage(page,searchFileResponsePageCfg).getList();
|
||||
List<BaseCfg> result = new ArrayList();
|
||||
for(int i=0;i<list.size();i++){
|
||||
ProxyFileInsertScriptCfg temp=(ProxyFileInsertScriptCfg)list.get(i);
|
||||
if("-1".equals(temp.getUserRegion5()) || temp.getUserRegion5()==null ){
|
||||
result.add(temp);
|
||||
}
|
||||
}
|
||||
if(!StringUtil.isEmpty(list)){
|
||||
hasData = commonPolicyService.batchDeleteMaatData(cfgList, page, batchCfg, list, hasData);
|
||||
hasData = commonPolicyService.batchDeleteMaatData(cfgList, page, batchCfg, result, hasData);
|
||||
}else{
|
||||
hasData = false;
|
||||
}
|
||||
@@ -4143,7 +4164,9 @@ public class BaseController {
|
||||
cfg.setIsAudit(entity.getIsAudit());
|
||||
cfg.setAuditTime(entity.getAuditTime());
|
||||
cfg.setAuditorId(entity.getAuditorId());
|
||||
notAuditList.add(cfg);
|
||||
if(!cfg.getQuote().equals("1")){
|
||||
notAuditList.add(cfg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}else if(className.equals("ProxyFileInsertScriptCfg")){
|
||||
@@ -4161,7 +4184,7 @@ public class BaseController {
|
||||
cfg.setIsValid(entity.getIsValid());
|
||||
cfg.setIsAudit(entity.getIsAudit());
|
||||
cfg.setAuditTime(entity.getAuditTime());
|
||||
cfg.setAuditorId(entity.getAuditorId());
|
||||
cfg.setAuditorId(entity.getAuditorId());
|
||||
notAuditList.add(cfg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user