From e9fd55eaeb9940109fa6fb281f42452dd97439c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 3 Apr 2024 14:49:35 +0800 Subject: [PATCH] 1 --- business/jxutils/tasks/configrefresh.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxutils/tasks/configrefresh.go b/business/jxutils/tasks/configrefresh.go index 970cd4471..457cedbdd 100644 --- a/business/jxutils/tasks/configrefresh.go +++ b/business/jxutils/tasks/configrefresh.go @@ -147,6 +147,7 @@ func RefreshWeixin2Token() (err error) { } } else { tokenInfo := getWX2TokenFromRemote(api.WeixinMiniAPI2.CBGetToken()) + globals.SugarLogger.Debugf("=================tokenInfo=1== := %s", utils.Format4Output(tokenInfo, false)) if tokenInfo != nil { expireTimeStr = utils.Time2Str(time.Now().Add(-weixinTokenExpires)) token = tokenInfo.Token @@ -375,7 +376,9 @@ func getWXTokenFromRemote(oldToken string) (tokenInfo *syseventhub.TokenInfo) { } func getWX2TokenFromRemote(oldToken string) (tokenInfo *syseventhub.TokenInfo) { + globals.SugarLogger.Debugf("=========bool : %s", utils.Format4Output(!globals.IsMainProductEnv() && globals.GetWeixinTokenKey != "" && globals.GetWeixinTokenURL != "", false)) if !globals.IsMainProductEnv() && globals.GetWeixinTokenKey != "" && globals.GetWeixinTokenURL != "" { + globals.SugarLogger.Debugf("=========globals.GetWeixin2TokenURL : %s", utils.Format4Output(globals.GetWeixin2TokenURL, false)) tokenInfo = PollingRemotEvent(globals.GetWeixin2TokenURL, 0, map[string]interface{}{ "oldToken": oldToken, })