From 8a4c145048de5cb0d30057eca08a9f5e8cd85c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 30 Dec 2022 10:00:55 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index a423d5a65..6b786befc 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -59,13 +59,13 @@ func (t *TcpClient) handleConn(c net.Conn) { 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"` + PrintNo json.Number `json:"print_no"` }{} if err := json.Unmarshal(buffer[0:n], ¶m); err != nil { c.Write([]byte(err.Error())) return } - t.buildMsgMap(param.PrintNo) + t.buildMsgMap(param.PrintNo.String()) c.Write([]byte("ok")) return }