fix: 网元安装移除hostId使用网元ID

This commit is contained in:
TsMask
2024-04-11 19:59:45 +08:00
parent d71123b5e7
commit 0b8d0781a2
3 changed files with 20 additions and 22 deletions

View File

@@ -162,7 +162,7 @@ func (s *NeSoftwareController) Install(c *gin.Context) {
Preinput map[string]string `json:"preinput" binding:"required"` // 预先输入参数
}
err := c.ShouldBindBodyWith(&body, binding.JSON)
if err != nil || body.Software.HostId == "" {
if err != nil || body.Software.NeId == "" {
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
return
}