Skip to content

Commit

Permalink
Fixed #442
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 31, 2022
1 parent 63f188f commit 213bc46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"cghooks add --ignore-lock",
"cghooks update"
],
"check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.dist.php --dry-run --allow-risky=yes --ansi",
"fix-style": "php-cs-fixer fix --using-cache=no --config=.php-cs-fixer.dist.php --allow-risky=yes --ansi",
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --allow-risky=yes --ansi",
"fix-style": "php-cs-fixer fix --using-cache=no --allow-risky=yes --ansi",
"test": "phpunit --colors"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/OAuthAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function handle(

// 跳转到微信授权页
return redirect()->away(
$service->getOAuth()->scopes($scope)->redirect($this->getRedirectUrl($request,$enforceHttps))
$service->getOAuth()->scopes($scope)->redirect($this->getRedirectUrl($request, $enforceHttps))
);
}

Expand Down
10 changes: 5 additions & 5 deletions src/Traits/HandleOpenPlatformServerEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ public function handleServerEvents(Application $application, ?callable $callback
$server = $application->getServer();

$server->handleAuthorized(function ($payload) {
event(new Authorized($payload));
event(new Authorized($payload->toArray()));
});

$server->handleUnauthorized(function ($payload) {
event(new Unauthorized($payload));
event(new Unauthorized($payload->toArray()));
});

$server->handleAuthorizeUpdated(function ($payload) {
event(new AuthorizeUpdated($payload));
event(new AuthorizeUpdated($payload->toArray()));
});

$server->handleVerifyTicketRefreshed(function ($payload) {
event(new VerifyTicketRefreshed($payload));
event(new VerifyTicketRefreshed($payload->toArray()));
});

if ($callback) {
Expand All @@ -58,4 +58,4 @@ protected function disableLaravelDebugbar(): void
}
}
}
}
}

0 comments on commit 213bc46

Please sign in to comment.