diff --git a/internal/biz/handle/dingtalk/send_card.go b/internal/biz/handle/dingtalk/send_card.go index 2b86313..71de592 100644 --- a/internal/biz/handle/dingtalk/send_card.go +++ b/internal/biz/handle/dingtalk/send_card.go @@ -164,7 +164,7 @@ func (s *SendCardClient) processContentChannel(ctx context.Context, cardSend *Ca var ( contentBuilder strings.Builder - lastUpdate time.Time + lastUpdate = time.Now() ) for { @@ -191,7 +191,7 @@ func (s *SendCardClient) processContentChannel(ctx context.Context, cardSend *Ca case <-heartbeatTicker.C: if time.Now().Unix()-lastUpdate.Unix() >= HeardBeatX { - log.Info("心跳超时") + log.Infof("心跳超时,当前时间:%d,最后时间:%d", time.Now().Unix(), lastUpdate.Unix()) return }