aa
This commit is contained in:
@@ -282,7 +282,9 @@ func HandleTcpMessages() {
|
|||||||
printMsg.Comment = err.Error()
|
printMsg.Comment = err.Error()
|
||||||
dao.UpdateEntity(db, printMsg, "Status", "Comment")
|
dao.UpdateEntity(db, printMsg, "Status", "Comment")
|
||||||
delete(tcpClient.Clients, printMsg.PrintNo)
|
delete(tcpClient.Clients, printMsg.PrintNo)
|
||||||
|
if c != nil {
|
||||||
c.Close()
|
c.Close()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if c != nil {
|
if c != nil {
|
||||||
if _, err = c.Write(data); err != nil {
|
if _, err = c.Write(data); err != nil {
|
||||||
@@ -326,7 +328,7 @@ func buildMsg(printMsg *model.PrintMsg) (data []byte, err error) {
|
|||||||
str = "1e"
|
str = "1e"
|
||||||
const1 = "0200ff50"
|
const1 = "0200ff50"
|
||||||
printInit = "1b40" //打印机初始化
|
printInit = "1b40" //打印机初始化
|
||||||
voice = "1d6b4009fd00060101d6d0b9fa" //语音,中国
|
voice = "1b594155011d6b4009fd00060101d6d0b9fa" //语音,中国
|
||||||
check = "ff"
|
check = "ff"
|
||||||
//qr = "1d58021b5a0001061600747470733a2f2f7777772e62616964752e636f6d2f1b000A0A0A1B40"
|
//qr = "1d58021b5a0001061600747470733a2f2f7777772e62616964752e636f6d2f1b000A0A0A1B40"
|
||||||
orderNoHexH, orderNoHexL, printData string
|
orderNoHexH, orderNoHexL, printData string
|
||||||
|
|||||||
Reference in New Issue
Block a user