页面授权优化

This commit is contained in:
Anyon 2020-12-21 13:44:03 +08:00
parent 8ba170debe
commit ca2e1d19f3

View File

@ -260,7 +260,7 @@ class WechatService extends Service
} elseif ((empty($isfull) && !empty($openid)) || (!empty($isfull) && !empty($openid) && !empty($userinfo))) { } elseif ((empty($isfull) && !empty($openid)) || (!empty($isfull) && !empty($openid) && !empty($userinfo))) {
return ['openid' => $openid, 'fansinfo' => $userinfo]; return ['openid' => $openid, 'fansinfo' => $userinfo];
} else { } else {
throw new \think\Exception('Query Params [rcode] not find.'); throw new \think\Exception('Query params [rcode] not find.');
} }
} else { } else {
$result = self::ThinkServiceConfig()->oauth($this->app->session->getId(), $source, $isfull); $result = self::ThinkServiceConfig()->oauth($this->app->session->getId(), $source, $isfull);