From 8c5b78d16500503cfd9edbb67ef37f044bff2df4 Mon Sep 17 00:00:00 2001 From: wangwei Date: Sun, 28 Apr 2019 15:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=97ddos=E6=94=BB?= =?UTF-8?q?=E5=87=BB=E4=BF=AE=E6=94=B9=E6=97=B6=E5=A4=9A=E4=BD=99=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../configuration/manipulation/DdosCfgController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/nis/web/controller/configuration/manipulation/DdosCfgController.java b/src/main/java/com/nis/web/controller/configuration/manipulation/DdosCfgController.java index 4c67bc019..d098fc5f3 100644 --- a/src/main/java/com/nis/web/controller/configuration/manipulation/DdosCfgController.java +++ b/src/main/java/com/nis/web/controller/configuration/manipulation/DdosCfgController.java @@ -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);