aa
This commit is contained in:
@@ -219,7 +219,7 @@ func (t *TcpClient) changePrintMsg(data string, orderNo int64, printNo string) (
|
|||||||
func HandleTcpMessages() {
|
func HandleTcpMessages() {
|
||||||
var (
|
var (
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
offset, pageSize = 0, 1
|
offset, pageSize = 0, 10
|
||||||
)
|
)
|
||||||
for {
|
for {
|
||||||
//一直读?
|
//一直读?
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ func (t *TcpClient) getPrintStatus(key string) int {
|
|||||||
if t.isExist(key) {
|
if t.isExist(key) {
|
||||||
return t.Clients[key].Status
|
return t.Clients[key].Status
|
||||||
} else {
|
} else {
|
||||||
return printerStatusOnlineWithoutPaper
|
return printerStatusOffline
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user