Skip to content

Commit efc4ebc

Browse files
authored
Bugfix.
1 parent 7bb0212 commit efc4ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class OAuthAuthenticate
3434
public function handle($request, Closure $next, $account = 'default', $scopes = null)
3535
{
3636
// $account 与 $scopes 写反的情况
37-
if (is_array($scopes) || (\is_string($account) && str_is($account, 'snsapi_*'))) {
37+
if (is_array($scopes) || (\is_string($account) && str_is('snsapi_*', $account))) {
3838
list($account, $scopes) = [$scopes, $account];
3939
$account || $account = 'default';
4040
}

0 commit comments

Comments
 (0)