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

This commit is contained in:
TsMask
2025-05-16 17:50:33 +08:00
parent b325b4d5ac
commit c836be5fea

View File

@@ -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
}