From 5e156916049c8c2ccd22b9dc120fc27fab6f019b Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 28 Jun 2021 09:28:37 +0800 Subject: [PATCH] aa --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index cfcc3443b..58173de58 100644 --- a/main.go +++ b/main.go @@ -197,7 +197,7 @@ func handleConn(c net.Conn) { printData := hex.EncodeToString([]byte(s)) lenData := int64(len(str) + len(const1) + len(orderNo) + len(printInit) + len(voice) + 1 + 2 + len(printData)) x1, x2 := int2h8l8(lenData) - data := const1 + x1 + x2 + orderNo + printInit + voice + printData + check + data := str + x1 + x2 + const1 + orderNo + printInit + voice + printData + check c.Write([]byte(data)) fmt.Println("write data: ", data) }