fix: 修复网元主机新增时ID验证逻辑错误

This commit is contained in:
TsMask committed 2025-05-16 17:50:33 +08:00
1 parent b325b4d5ac
commit c836be5fea
1 file changed
+1 -1
@@ -78,7 +78,7 @@ func (s NeHostController) Add(c *gin.Context) {
c.JSON(422, resp.CodeMsg(422001, errMsgs)) c.JSON(422, resp.CodeMsg(422001, errMsgs))
return return
} }
if body.ID == 0 { if body.ID != 0 {
c.JSON(422, resp.CodeMsg(422002, "bind err: id not is empty")) c.JSON(422, resp.CodeMsg(422002, "bind err: id not is empty"))
return return
} }