This commit is contained in:
suyl
2021-08-26 14:30:23 +08:00
parent 398eb6ef78
commit b375c08422

View File

@@ -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)