1
This commit is contained in:
@@ -161,11 +161,10 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
|
||||
if !t.isExistMsg(printNo) {
|
||||
return
|
||||
}
|
||||
timeNow := time.Now()
|
||||
|
||||
go func() {
|
||||
for {
|
||||
if timeNow.Second()%2 != 0 {
|
||||
if time.Now().Second()%2 != 0 {
|
||||
continue
|
||||
}
|
||||
select {
|
||||
@@ -174,6 +173,7 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
|
||||
return
|
||||
default:
|
||||
//一直读?
|
||||
timeNow := time.Now()
|
||||
timeStart := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, timeNow.Location())
|
||||
timeEnd := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 23, 59, 59, 0, timeNow.Location())
|
||||
prints, _ := dao.GetPrintMsgs(db, printNo, []int{printMsgWait, printMsgAlreadyLoad}, timeStart, timeEnd, offset, pageSize)
|
||||
|
||||
Reference in New Issue
Block a user