Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加企业微信AccessToken缓存 #20

Merged
merged 2 commits into from
Jul 6, 2021
Merged

Conversation

riba2534
Copy link
Contributor

@riba2534 riba2534 commented Jul 6, 2021

目前云函数逻辑是每一条请求都去获取一次 AccessToken,这样可能会触发微信频控策略。

故改为用全局变量缓存 token,30min刷新一次token.

@easychen easychen merged commit ba459a4 into easychen:main Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants