fix: MML命令执行回车\r\n - IMS无法输出
This commit is contained in:
@@ -80,8 +80,10 @@ func (s MMLController) Command(c *gin.Context) {
|
||||
c.JSON(200, resp.ErrMsg(err.Error()))
|
||||
return
|
||||
}
|
||||
telnetClient.RunCMD("\r\n")
|
||||
defer telnetClient.Close()
|
||||
if body.NeType != "IMS" {
|
||||
telnetClient.RunCMD("\r\n")
|
||||
}
|
||||
if body.NeType == "UPF" && body.Type == "Standard" {
|
||||
telnetClient.WindowChange(1024, 1024)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user