This commit is contained in:
邹宗楠
2023-03-16 14:34:18 +08:00
parent b42b66bc8f
commit b4bac4ea17
2 changed files with 35 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ func (t *TcpClient) handleConn(c net.Conn) error {
//看是心跳还是打印回调
data := hex.EncodeToString(buffer[:n])
globals.SugarLogger.Debugf("========shuju:=%s", data)
if strings.Contains(string(buffer[0:n]), "print_no_clear") { // 清理缓存
param := struct {
PrintNoClear json.Number `json:"print_no_clear"`