Skip to content

Commit

Permalink
Merge pull request #602 from 81519434/fix_wx_msg_bug
Browse files Browse the repository at this point in the history
修复企业微信发送消息失败的bug fix #601
  • Loading branch information
hhyo authored Jan 15, 2020
2 parents 4bead3b + c83ce17 commit 696415a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/wx_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_wx_access_token():
if resp.get('errcode') == 0:
access_token = resp.get('access_token')
expires_in = resp.get('expires_in')
cache.set('wx_access_token', access_token, timeout={expires_in - 60})
cache.set('wx_access_token', access_token, timeout=expires_in - 60)
return access_token
else:
logger.error(f"获取企业微信access_token出错:{resp}")
Expand Down

0 comments on commit 696415a

Please sign in to comment.