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

企业微信无法获取oauth实例 #2807

Open
GabbyMrH opened this issue Apr 23, 2024 · 0 comments
Open

企业微信无法获取oauth实例 #2807

GabbyMrH opened this issue Apr 23, 2024 · 0 comments

Comments

@GabbyMrH
Copy link

我用的环境

  • PHP 版本:8.1
  • overtrue/wechat 版本:5.30.0
  • 是否使用了框架?框架名称:webman

问题及现象

参考文档:https://easywechat.com/5.x/wework/oauth.html#%E8%B7%B3%E8%BD%AC%E6%8E%88%E6%9D%83
代码示例

        $config = [
            'corp_id' => 'xxxxxxxxxxxxxxxxx',
            'secret'   => 'xxxxxxxxxx', // 应用的 secret
            'agent_id' => 100001,
        ];

        $app = Factory::work($config);
        dump($app->oauth)

报错信息如下

ErrorException: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in
xxx/vendor/overtrue/wechat/src/Work/OAuth/ServiceProvider.php:56
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