Skip to content

Commit 213bc46

Browse files
committed
Fixed #442
1 parent 63f188f commit 213bc46

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"cghooks add --ignore-lock",
5252
"cghooks update"
5353
],
54-
"check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.dist.php --dry-run --allow-risky=yes --ansi",
55-
"fix-style": "php-cs-fixer fix --using-cache=no --config=.php-cs-fixer.dist.php --allow-risky=yes --ansi",
54+
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --allow-risky=yes --ansi",
55+
"fix-style": "php-cs-fixer fix --using-cache=no --allow-risky=yes --ansi",
5656
"test": "phpunit --colors"
5757
},
5858
"config": {

src/Middleware/OAuthAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function handle(
7474

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

src/Traits/HandleOpenPlatformServerEvents.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ public function handleServerEvents(Application $application, ?callable $callback
2424
$server = $application->getServer();
2525

2626
$server->handleAuthorized(function ($payload) {
27-
event(new Authorized($payload));
27+
event(new Authorized($payload->toArray()));
2828
});
2929

3030
$server->handleUnauthorized(function ($payload) {
31-
event(new Unauthorized($payload));
31+
event(new Unauthorized($payload->toArray()));
3232
});
3333

3434
$server->handleAuthorizeUpdated(function ($payload) {
35-
event(new AuthorizeUpdated($payload));
35+
event(new AuthorizeUpdated($payload->toArray()));
3636
});
3737

3838
$server->handleVerifyTicketRefreshed(function ($payload) {
39-
event(new VerifyTicketRefreshed($payload));
39+
event(new VerifyTicketRefreshed($payload->toArray()));
4040
});
4141

4242
if ($callback) {
@@ -58,4 +58,4 @@ protected function disableLaravelDebugbar(): void
5858
}
5959
}
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)