From 41fc7ba11e7fba10970aa4f48e6c24562eb27b39 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Tue, 3 Aug 2021 10:08:16 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 5db637ccc..03111bfd1 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -272,7 +272,7 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) { default: if !utils.IsTimeZero(t.getPrintStatusTime(key)) { //2分钟内没心跳判断打印机掉线了 - if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute*2 { + if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*3 { changePrinterStatus(key, printerStatusOffline) if t.isExist(key) { t.clear(key)