fix: UDM-IMS参数获取判断
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user