作者 chencheng

0529-test-4

... ... @@ -54,7 +54,7 @@ class Wechat extends Api
$redirect = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$APPID&redirect_uri=$REDIRECT_URI&response_type=code&scope=$SCOPE&state=STATE#wechat_redirect";
$curUrl = request()->url(true);
$response = $app->oauth->scopes(['snsapi_userinfo']) ->redirect($curUrl);
$response = $app->oauth->scopes(['snsapi_userinfo']) ->redirect(urlencode($curUrl));
return $response;
}else{
... ...