This commit is contained in:
邹宗楠
2022-07-27 15:06:25 +08:00
parent 610187ad44
commit c0f6c0f318
2 changed files with 5 additions and 2 deletions

View File

@@ -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("打印机离线!")

View File

@@ -44,6 +44,7 @@ func Test10Two16(t *testing.T) {
}
func TestCheckSum(t *testing.T) {
aa := getCheckSum(`1e00140200ff50bc147df3d71b401B59415515`)
aa := getCheckSum(``)
fmt.Println(aa)
}