We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6999558 commit 8eab625Copy full SHA for 8eab625
src/filters.php
@@ -80,7 +80,7 @@
80
$lastOauthTime = Session::get('oauth_time', 0);
81
$timeNow = time();
82
if (!Session::has('wechat_userinfo') or (Input::has('wechat-force') and ($lastOauthTime < ($timeNow - 30)))) {
83
- if (Input::has('code')) {
+ if (Input::has('code') and Session::has('url.intended')) {
84
//获取openid
85
try {
86
$token = Helper::get_access_token(Input::get('code'));
0 commit comments