正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -124,9 +124,12 @@ class WxloginController extends HomeBaseController | @@ -124,9 +124,12 @@ class WxloginController extends HomeBaseController | ||
124 | exit; | 124 | exit; |
125 | } | 125 | } |
126 | }else{ | 126 | }else{ |
127 | + $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".Config::get('WX_APPID')."&redirect_uri=" . $redirect_uri . "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; | ||
127 | $a['a'] = 3; | 128 | $a['a'] = 3; |
129 | + $a['c'] = $url; | ||
130 | + $a['e'] = Config::get('WX_APPID'); | ||
131 | + $a['f'] = $redirect_uri; | ||
128 | Db::name('Test')->insertGetId($a); | 132 | Db::name('Test')->insertGetId($a); |
129 | - $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".Config::get('WX_APPID')."&redirect_uri=" . $redirect_uri . "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; | ||
130 | Header("Location: $url"); | 133 | Header("Location: $url"); |
131 | exit; | 134 | exit; |
132 | } | 135 | } |
-
请 注册 或 登录 后发表评论