From cf8371973d6630fd3949fffc2278e05956f00b3c Mon Sep 17 00:00:00 2001 From: Seven Du Date: Tue, 4 Dec 2018 17:23:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(*):=20=E4=BF=AE=E5=A4=8D=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E4=BA=A4=E8=BF=9C=E7=AB=AF=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=BC=80=E6=BA=90=E5=BA=93=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/slimkit-plus-socialite/routes/api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/slimkit-plus-socialite/routes/api.php b/packages/slimkit-plus-socialite/routes/api.php index 71c7b564b..d3ab62b50 100644 --- a/packages/slimkit-plus-socialite/routes/api.php +++ b/packages/slimkit-plus-socialite/routes/api.php @@ -38,7 +38,10 @@ // Socialite. // @Route /api/v2/socialite $api->group(['prefix' => 'socialite'], function (RouteRegisterContract $api) { - + $api->get('/getAccess/{code}', API\WechatController::class.'@getAccess')->name('wechat://mp:access'); + $api->post('/getWechatUser', API\WechatController::class.'@getUser')->name('wechat://mp:userInfo'); + $api->post('/getOriginUrl', API\WechatController::class.'@getOauthUrl')->name('wechat://mp:redirectUrl'); + $api->post('/wxconfig', API\WechatController::class.'@calculateConfig')->name('wechat://mp:share'); // Check bind and get user auth token. // @POST /api/v2/socialite/:provider $api->post('/{provider}', API\SocialiteController::class.'@checkAuth');