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

feat: 获取稳定版接口调用凭据 #669

Merged
merged 3 commits into from
Apr 18, 2023

Conversation

welllog
Copy link
Contributor

@welllog welllog commented Apr 14, 2023

实现获取稳定版接口调用凭据的AccessTokenContextHandle。使用此handle可以在不同环境及服务获取同一个appid下面的access_token,而不需要分布式锁和公用缓存来保证access_token争抢问题

Copy link
Collaborator

@houseme houseme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改一下注释

@houseme houseme requested a review from silenceper April 16, 2023 03:55
@silenceper
Copy link
Owner

@welllog 这个稳定版接口调用凭据是只有小程序才能使用吗?

@welllog
Copy link
Contributor Author

welllog commented Apr 18, 2023

@welllog 这个稳定版接口调用凭据是只有小程序才能使用吗?

公众号也可使用,调用完全一致,不过我只验证过小程序
https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/getStableAccessToken.html

微信开发者平台文档

@silenceper silenceper merged commit 8821a38 into silenceper:v2 Apr 18, 2023
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.

3 participants