We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb0212 commit efc4ebcCopy full SHA for efc4ebc
src/Middleware/OAuthAuthenticate.php
@@ -34,7 +34,7 @@ class OAuthAuthenticate
34
public function handle($request, Closure $next, $account = 'default', $scopes = null)
35
{
36
// $account 与 $scopes 写反的情况
37
- if (is_array($scopes) || (\is_string($account) && str_is($account, 'snsapi_*'))) {
+ if (is_array($scopes) || (\is_string($account) && str_is('snsapi_*', $account))) {
38
list($account, $scopes) = [$scopes, $account];
39
$account || $account = 'default';
40
}
0 commit comments