This commit is contained in:
邹宗楠
2024-07-10 11:17:00 +08:00
parent e3fedfdcd2
commit 5530ab4d01
2 changed files with 6 additions and 8 deletions

View File

@@ -89,12 +89,10 @@ func handleConn(c net.Conn) error {
callback = true
}
t, ok := PrintObject[printNo]
if !ok {
t = NewTcpClient()
buildAllMap(t, printNo)
PrintObject[printNo] = t
}
t := NewTcpClient()
buildAllMap(t, printNo)
PrintObject[printNo] = t
if strings.Contains(string(buffer[0:n]), "print_no_clear") { // 清理缓存
param := struct {
PrintNoClear json.Number `json:"print_no_clear"`