fix: 修复网元主机新增时ID验证逻辑错误
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user