From 17c1f0612a152884c546e7d4d0e8c277a420f5eb Mon Sep 17 00:00:00 2001 From: MMXX Date: Mon, 27 Dec 2021 16:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=93=E5=AD=98=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/mp/wechat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fir_ser/api/utils/mp/wechat.py b/fir_ser/api/utils/mp/wechat.py index 89b5162..c1e1971 100644 --- a/fir_ser/api/utils/mp/wechat.py +++ b/fir_ser/api/utils/mp/wechat.py @@ -12,7 +12,7 @@ import requests from api.utils.mp.utils import WxMsgCryptBase from common.base.baseutils import get_format_time from common.cache.storage import WxTokenCache -from fir_ser.settings import THIRDLOGINCONF, CACHE_KEY_TEMPLATE +from fir_ser.settings import THIRDLOGINCONF logger = logging.getLogger(__name__) wx_login_info = THIRDLOGINCONF.wx_official @@ -44,7 +44,6 @@ def sync_wx_access_token(force=False): def get_wx_access_token_cache(c_count=1, ): if c_count > 5: return '' - wx_access_token_key = CACHE_KEY_TEMPLATE.get("wx_access_token_key") access_token = WxTokenCache().get_storage_cache() if access_token: return access_token.get('access_token')