修正抗ddos攻击修改时多余提示信息
This commit is contained in:
@@ -58,6 +58,12 @@ public class DdosCfgController extends BaseController {
|
||||
@ModelAttribute("cfg") DdosIpCfg cfg) {
|
||||
if (!StringUtil.isEmpty(ids)) {
|
||||
cfg = ddosCfgService.getDdosIpCfg(Long.parseLong(ids), null);
|
||||
if(cfg.getBpsThreadshold()==0){
|
||||
cfg.setBpsThreadshold(null);
|
||||
};
|
||||
if(cfg.getPpsThreadshold()==0){
|
||||
cfg.setPpsThreadshold(null);
|
||||
};
|
||||
initUpdateFormCondition(model, cfg);
|
||||
} else {
|
||||
initFormCondition(model, cfg);
|
||||
|
||||
Reference in New Issue
Block a user