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 }