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