|
@@ -365,7 +365,7 @@ class LoginController extends HomeBaseController |
|
@@ -365,7 +365,7 @@ class LoginController extends HomeBaseController |
365
|
return $url;
|
365
|
return $url;
|
366
|
}
|
366
|
}
|
367
|
|
367
|
|
368
|
- //第三方微信登录
|
368
|
+ //第三方微信pc登录
|
369
|
public function wx_login(){
|
369
|
public function wx_login(){
|
370
|
$code = $this->request->get('code');
|
370
|
$code = $this->request->get('code');
|
371
|
$url = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid='.$this->appkey1.'&secret='.$this->appsecret1.'&code='.$code.'&grant_type=authorization_code';
|
371
|
$url = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid='.$this->appkey1.'&secret='.$this->appsecret1.'&code='.$code.'&grant_type=authorization_code';
|
|
@@ -408,6 +408,11 @@ class LoginController extends HomeBaseController |
|
@@ -408,6 +408,11 @@ class LoginController extends HomeBaseController |
408
|
$this->redirect('/');
|
408
|
$this->redirect('/');
|
409
|
}
|
409
|
}
|
410
|
|
410
|
|
|
|
411
|
+ //第三方微信移动端网页登录
|
|
|
412
|
+ public function wx_login_mobile(){
|
|
|
413
|
+
|
|
|
414
|
+ }
|
|
|
415
|
+
|
411
|
//第三方微博登录
|
416
|
//第三方微博登录
|
412
|
public function wb_login(){
|
417
|
public function wb_login(){
|
413
|
$code = $this->request->get('code');
|
418
|
$code = $this->request->get('code');
|