From c836be5fea5bbc5a2e1a5612f5898d42db559c56 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 16 May 2025 17:50:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=85=83?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E6=96=B0=E5=A2=9E=E6=97=B6ID=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_element/controller/ne_host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/network_element/controller/ne_host.go b/src/modules/network_element/controller/ne_host.go index db9b2c3d..65daa5f9 100644 --- a/src/modules/network_element/controller/ne_host.go +++ b/src/modules/network_element/controller/ne_host.go @@ -78,7 +78,7 @@ func (s NeHostController) Add(c *gin.Context) { c.JSON(422, resp.CodeMsg(422001, errMsgs)) return } - if body.ID == 0 { + if body.ID != 0 { c.JSON(422, resp.CodeMsg(422002, "bind err: id not is empty")) return }