...
|
...
|
@@ -124,9 +124,12 @@ class WxloginController extends HomeBaseController |
|
|
exit;
|
|
|
}
|
|
|
}else{
|
|
|
$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";
|
|
|
$a['a'] = 3;
|
|
|
$a['c'] = $url;
|
|
|
$a['e'] = Config::get('WX_APPID');
|
|
|
$a['f'] = $redirect_uri;
|
|
|
Db::name('Test')->insertGetId($a);
|
|
|
$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";
|
|
|
Header("Location: $url");
|
|
|
exit;
|
|
|
}
|
...
|
...
|
|