fix: UDM签约批量添加msisdn和start_msisdn识别导致数据一致
This commit is contained in:
@@ -192,6 +192,8 @@ func (s *UDMSubController) Adds(c *gin.Context) {
|
||||
if body.StaticIp != "" {
|
||||
cmd += fmt.Sprintf(",static_ip=%s", body.StaticIp)
|
||||
}
|
||||
omemsisdn := fmt.Sprintf(",msisdn=%s,", body.MSISDN)
|
||||
cmd = strings.Replace(cmd, omemsisdn, ",", 1)
|
||||
data, err := telnet.ConvertToStr(telnetClient, cmd)
|
||||
if err != nil {
|
||||
c.JSON(200, result.ErrMsg(err.Error()))
|
||||
|
||||
Reference in New Issue
Block a user