1
This commit is contained in:
@@ -379,6 +379,7 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err
|
||||
Content: content,
|
||||
OrderNo: orderNo,
|
||||
MsgID: msgID,
|
||||
Status: event.PrintMsgWait,
|
||||
}
|
||||
|
||||
t, ok := event.PrintObject[printNo]
|
||||
@@ -387,7 +388,7 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err
|
||||
defer t.Unlock()
|
||||
t.MsgMap[printNo] <- printMsg
|
||||
printMsg.Status = event.PrintMsgAlreadyLoad
|
||||
} else {
|
||||
} /*else {
|
||||
t = event.NewTcpClient()
|
||||
event.BuildAllMap(t, printNo)
|
||||
event.PrintObject[printNo] = t
|
||||
@@ -396,7 +397,7 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err
|
||||
defer t.Unlock()
|
||||
t.MsgMap[printNo] <- printMsg
|
||||
printMsg.Status = event.PrintMsgAlreadyLoad
|
||||
}
|
||||
}*/
|
||||
|
||||
dao.WrapAddIDCULDEntity(printMsg, "")
|
||||
if err = dao.CreateEntity(db, printMsg); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user