-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] 企业微信 access_token 缓存没有区分应用导致应用调用异常 #706
Comments
是否应该引入 |
我也遇到这个问题。 |
accessToken 同企业下不同应用是不一样的 |
应该引入,因为企业微信应用的accessToken本身就是按照 agent_id隔离的 |
@wwek 欢迎搞个pr修复改进 |
描述
如何复现
步骤:
1、企业微信后台创建两个应用A、B
2、先使用 A 的配置进行API调用,此时行为正常
3、将配置替换为 B 的配置,此时发消息等API调用行为仍为B应用
原因
https://github.com/silenceper/wechat/blob/v2/credential/default_access_token.go#L201C31-L201C31
在这行缓存中,仅区分了 corp_id 而没有区分应用导致的
The text was updated successfully, but these errors were encountered: