aa
This commit is contained in:
@@ -147,7 +147,6 @@ func HandleTcpMessages() {
|
|||||||
var (
|
var (
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
offset, pageSize = 0, 10
|
offset, pageSize = 0, 10
|
||||||
data []byte
|
|
||||||
)
|
)
|
||||||
for {
|
for {
|
||||||
//一直读?
|
//一直读?
|
||||||
@@ -155,7 +154,10 @@ func HandleTcpMessages() {
|
|||||||
time.Sleep(time.Second / 2)
|
time.Sleep(time.Second / 2)
|
||||||
prints, _ := dao.GetPrintMsgs(db, printMsgWait, offset, pageSize)
|
prints, _ := dao.GetPrintMsgs(db, printMsgWait, offset, pageSize)
|
||||||
for _, printMsg := range prints {
|
for _, printMsg := range prints {
|
||||||
var c net.Conn
|
var (
|
||||||
|
data []byte
|
||||||
|
c net.Conn
|
||||||
|
)
|
||||||
if printMsg != nil {
|
if printMsg != nil {
|
||||||
if err = checkPrintMsg(printMsg); err == nil {
|
if err = checkPrintMsg(printMsg); err == nil {
|
||||||
if tcpClient.Clients[printMsg.PrintNo] != nil {
|
if tcpClient.Clients[printMsg.PrintNo] != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user