Skip to content

Commit 8eab625

Browse files
committed
re-entry support
1 parent 6999558 commit 8eab625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filters.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
$lastOauthTime = Session::get('oauth_time', 0);
8181
$timeNow = time();
8282
if (!Session::has('wechat_userinfo') or (Input::has('wechat-force') and ($lastOauthTime < ($timeNow - 30)))) {
83-
if (Input::has('code')) {
83+
if (Input::has('code') and Session::has('url.intended')) {
8484
//获取openid
8585
try {
8686
$token = Helper::get_access_token(Input::get('code'));

0 commit comments

Comments
 (0)