From 718b9991c1037d7b1edb395475d94ffa17571c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 21 Oct 2022 16:18:56 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp_utils.go | 1 + business/jxstore/event/print_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index a482f0a7d..5d7241783 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -361,6 +361,7 @@ func changePrinterStatus(printNo string, status int) { //按打印机方提供的文档来的 func buildMsg(printMsg *model.PrintMsg) (data []byte, err error) { + globals.SugarLogger.Debugf("buildMsg===========%s", utils.Format4Output(printMsg, false)) var ( content = printMsg.Content orderNo = printMsg.OrderNo diff --git a/business/jxstore/event/print_test.go b/business/jxstore/event/print_test.go index 46929fa95..5b2215ba0 100644 --- a/business/jxstore/event/print_test.go +++ b/business/jxstore/event/print_test.go @@ -15,7 +15,7 @@ func TestPrintMsg(t *testing.T) { msg := &model.PrintMsg{ ModelIDCULD: model.ModelIDCULD{}, - PrintNo: "20220707000002", + PrintNo: "120221008001001", Content: "
居中文字
", OrderNo: "1", // 2147483648111 Status: 0,