This commit is contained in:
suyl
2021-07-30 08:59:43 +08:00
parent 952c912dbf
commit fe68ba1dac
2 changed files with 2 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ func (t *TcpClient) changePrintMsg(data string, orderNo int64, printNo string) (
func HandleTcpMessages() {
var (
db = dao.GetDB()
offset, pageSize = 0, 1
offset, pageSize = 0, 10
)
for {
//一直读?

View File

@@ -158,7 +158,7 @@ func (t *TcpClient) getPrintStatus(key string) int {
if t.isExist(key) {
return t.Clients[key].Status
} else {
return printerStatusOnlineWithoutPaper
return printerStatusOffline
}
}