From c0f6c0f3184c3ea74016280edc67116d804148e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 27 Jul 2022 15:06:25 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 4 +++- business/jxstore/event/print_test.go | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 492332e5c..7083fb352 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -4,6 +4,7 @@ import ( "encoding/hex" "fmt" "git.rosy.net.cn/baseapi/utils" + "git.rosy.net.cn/jx-callback/business/jxutils" "git.rosy.net.cn/jx-callback/business/model/dao" "git.rosy.net.cn/jx-callback/globals" "io" @@ -222,7 +223,8 @@ func (t *TcpClient) doPrint(key string) (err error) { //只有在线才打印内容 case printerStatusOnline: if c = t.getPrintConn(printMsg.PrintNo); c != nil { - data, err = buildMsg(printMsg) + //data, err = buildMsg(printMsg) + data = jxutils.Hextob("1e00140200ff50bc147df3d71b401B59415515" + "ff") } case printerStatusOffline: err = fmt.Errorf("打印机离线!") diff --git a/business/jxstore/event/print_test.go b/business/jxstore/event/print_test.go index b6a841212..230bec4fa 100644 --- a/business/jxstore/event/print_test.go +++ b/business/jxstore/event/print_test.go @@ -44,6 +44,7 @@ func Test10Two16(t *testing.T) { } func TestCheckSum(t *testing.T) { - aa := getCheckSum(`1e00140200ff50bc147df3d71b401B59415515`) + aa := getCheckSum(``) fmt.Println(aa) + }