From b375c084228313c979cbc75f319fcba11a313c85 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 26 Aug 2021 14:30:23 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 272d575fb..2b2142ae5 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -287,8 +287,8 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) { default: statusTime := t.getPrintStatusTime(key) if !utils.IsTimeZero(statusTime) { - //2分钟内没心跳判断打印机掉线了 - if time.Now().Sub(statusTime) > time.Minute+time.Second*3 { + //1分钟内没心跳判断打印机掉线了 + if time.Now().Sub(statusTime) > time.Minute+time.Second*10 { changePrinterStatus(key, printerStatusOffline) globals.SugarLogger.Debugf("HandleCheckTcpHeart clear...") //t.clear(key)