fix: reload after batch add or del

This commit is contained in:
zhangsz committed 2025-04-15 19:59:23 +08:00
1 parent e1edf203c9
commit 82562de598
5 files changed
+31 -18

No files matched your search

+1 -2
View File
@@ -182,8 +182,7 @@ func (s *VoIPAuthController) Adds(c *gin.Context) {
defer telnetClient.Close()
// 发送MML
cmd := fmt.Sprintf("baa voip:start_username=%s,password=%s,sub_num=%s,",
body.UserName, body.Password, num)
cmd := fmt.Sprintf("baa voip:start_username=%s,sub_num=%s,", body.UserName, num)
cmd += s.voipAuthService.ParseCommandParams(body)
data, err := telnet.ConvertToStr(telnetClient, cmd)
if err != nil {