This commit is contained in:
suyl
2021-07-30 11:02:23 +08:00
parent 143d3dc858
commit ee5f58f6f9
2 changed files with 2 additions and 1 deletions

View File

@@ -277,7 +277,7 @@ func (t *TcpClient) doPrint2(printMsgChan chan *model.PrintMsg) (err error) {
err = fmt.Errorf("未查询到此printMsg")
}
if err != nil {
fmt.Println("111111111111111111111111111111111111111111111", utils.Format4Output(t.Clients[printMsg.PrintNo], true), err.Error())
globals.SugarLogger.Debugf("doPrint2 err printNo:%s, msgID:%s, printInfo: %v, err: %s", printMsg.PrintNo, printMsg.MsgID, utils.Format4Output(t.Clients[printMsg.PrintNo], true), err.Error())
//t.delConn(printMsg.PrintNo)
printMsg.Status = printMsgErr
printMsg.Comment = err.Error()

View File

@@ -8,6 +8,7 @@ type PrintMsg struct {
OrderNo int `json:"order_no"` //订单序号
Status int `json:"status"` //打印状态
Comment string `json:"comment"` //失败原因
MsgID string `orm:"column(msg_id)" json:"msgID"`
}
type Printer struct {