Skip to content

Commit 6e98da8

Browse files
committed
add access token session store
1 parent 8eab625 commit 6e98da8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/filters.php

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
return '获取token错误';
3636
}
3737
try {
38+
Session::put('oauth-access-token', $accessToken);
3839
$userinfo = Helper::get_global_userinfo($accessToken['openid']);
3940
Session::put('wechat_userinfo', $userinfo);
4041
} catch (Exception $e) {
@@ -90,6 +91,7 @@
9091
}
9192

9293
try {
94+
Session::put('oauth-access-token', $token);
9395
$userinfo = Helper::get_userinfo($token['access_token'], $token['openid']);
9496
} catch (Exception $e) {
9597
Log::error($e->getMessage());

0 commit comments

Comments
 (0)