This commit is contained in:
邹宗楠
2022-12-30 09:53:06 +08:00
parent c88f32cea3
commit 3167b67693

View File

@@ -61,7 +61,7 @@ func (t *TcpClient) handleConn(c net.Conn) {
PrintNo string `json:"print_no"`
}{}
if err := json.Unmarshal(buffer[0:n], &param); err != nil {
c.Write([]byte("err Unmarshal"))
c.Write([]byte(err.Error()))
return
}
t.buildMsgMap(param.PrintNo)