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