This commit is contained in:
邹宗楠
2022-12-30 09:56:22 +08:00
parent 3167b67693
commit 9abe9a3a2c

View File

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