优化获取微信token代码

dependabot/npm_and_yarn/fir_admin/tmpl-1.0.5
youngS 3 years ago
parent dc8de286c5
commit 19709c7da3
  1. 1
      fir_ser/api/utils/mp/wechat.py

@ -16,6 +16,7 @@ from api.utils.mp.utils import WxMsgCryptBase
logger = logging.getLogger(__name__)
wx_login_info = THIRDLOGINCONF.wx_official
def format_req_json(j_data, func, *args, **kwargs):
if j_data.get("errcode") == 40001 or 'invalid credential' in j_data.get('errmsg', ''):
logger.error(f"error j_data {j_data}")

Loading…
Cancel
Save