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

在企业微信网页授权设置state遇到的问题 #2794

Open
ideaviewes opened this issue Feb 26, 2024 · 0 comments
Open

在企业微信网页授权设置state遇到的问题 #2794

ideaviewes opened this issue Feb 26, 2024 · 0 comments

Comments

@ideaviewes
Copy link

ideaviewes commented Feb 26, 2024

我用的环境

  • PHP 版本:7.4
  • overtrue/wechat 版本:4.7.0
  • 是否使用了框架?框架名称:thinkphp5.1

问题及现象

$callback="https://xxxx.com/wx/change/group";
$config = config("wechat.work.{$account}");
$app = Factory::work($config);
$url = $app->oauth->with(['state' => 123])->redirect($callback)->getTargetUrl();

我设置了state是123,但是打印生成的url,url中state是0,这个问题要如何解决呢?

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

No branches or pull requests

1 participant