fix: UDM-IMS参数获取判断

This commit is contained in:
TsMask
2025-06-27 14:16:03 +08:00
parent 9ac6adfc7f
commit 3c46ab572d

View File

@@ -171,7 +171,7 @@ func (s *UDMVolteIMSController) Add(c *gin.Context) {
// 传入数量大于0时为批量新增
num := parse.Number(c.Query("num"))
if num < 0 {
c.JSON(400, resp.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
c.JSON(422, resp.CodeMsg(resp.CODE_PARAM_CHEACK, "bind err: num is less than 0"))
return
}
@@ -288,7 +288,7 @@ func (s *UDMVolteIMSController) Remove(c *gin.Context) {
defer telnetClient.Close()
// 批量更新
if query.Num > 0 {
if query.Num > 1 {
// 发送MML
cmd := ""
if query.Volte == "0" {