-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
企业微信授权scopes=snsapi_privateinfo报错agent_id必填,需要额外调用withAgentId,是否可优化呢? #2619
Comments
这个agentId是不是过不了phpunit?
|
我擦嘞?php 几? |
我好像是8.0.1x,还有fork那的ci php-8-lowest和php-8.1-lowest过不了,https://github.com/jiangslee/easywechat/actions/runs/3501977162 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我用的环境
问题及现象
伪代码如下
会报错
agent_id is require when qrcode mode or scopes is 'snsapi_privateinfo'
分析代码,在/src/Work/Application.php L143 调用
Overtrue\Socialite\Providers\WeWork
时未传入agent_id
, 但是在overtrue/socialite 那一侧又支持带入agent_id,这里是否可优化呢?ps.虽然可以在
getOAuth()
后withAgentId($agent_id)
去解决这个问题,但是总感觉能配置的不应该再在调用中去带入用。thx~
The text was updated successfully, but these errors were encountered: