正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -54,7 +54,7 @@ class Wechat extends Api | @@ -54,7 +54,7 @@ class Wechat extends Api | ||
54 | $redirect = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$APPID&redirect_uri=$REDIRECT_URI&response_type=code&scope=$SCOPE&state=STATE#wechat_redirect"; | 54 | $redirect = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$APPID&redirect_uri=$REDIRECT_URI&response_type=code&scope=$SCOPE&state=STATE#wechat_redirect"; |
55 | $curUrl = request()->url(true); | 55 | $curUrl = request()->url(true); |
56 | 56 | ||
57 | - $response = $app->oauth->scopes(['snsapi_userinfo']) ->redirect($curUrl); | 57 | + $response = $app->oauth->scopes(['snsapi_userinfo']) ->redirect(urlencode($curUrl)); |
58 | 58 | ||
59 | return $response; | 59 | return $response; |
60 | }else{ | 60 | }else{ |
-
请 注册 或 登录 后发表评论