fix: 修复网元主机新增时ID验证逻辑错误
This commit is contained in:
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))
|
||||
return
|
||||
}
|
||||
if body.ID == 0 {
|
||||
if body.ID != 0 {
|
||||
c.JSON(422, resp.CodeMsg(422002, "bind err: id not is empty"))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user