Skip to content

Commit c43758a

Browse files
committed
Merge pull request #30 from pallmallshow/master
Fix not loaded config
2 parents e5928e4 + 3b0611a commit c43758a

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
@@ -19,7 +19,7 @@ class OAuthAuthenticate
1919
*/
2020
public function handle($request, Closure $next, $guard = null)
2121
{
22-
$wechat = app('EasyWeChat\\Foundation\\Application');
22+
$wechat = app('EasyWeChat\\Foundation\\Application', [config('wechat')]);
2323

2424
if (!session('wechat.oauth_user')) {
2525
if ($request->has('state') && $request->has('code')) {

0 commit comments

Comments
 (0)