切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
2d1a1a2ed4a4c0c9af2ef45eb7fdf09053aedea7
1 个父辈
f930522b
1 个管道 的构建
通过
耗费 0 秒
测试微信登录
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
app/portal/controller/LoginController.php
app/portal/controller/LoginController.php
查看文件 @
2d1a1a2
...
...
@@ -368,7 +368,6 @@ class LoginController extends HomeBaseController
$json_arr
=
json_decode
(
$res
,
true
);
if
(
!
isset
(
$json_arr
[
'access_token'
])
&&
empty
(
$json_arr
[
'access_token'
])){
//用户取消登录
$this
->
redirect
(
'/portal/login/thirdLogin'
);
}
$token
=
$json_arr
[
'access_token'
];
...
...
@@ -405,8 +404,7 @@ class LoginController extends HomeBaseController
//第三方微信移动端网页登录
public
function
wx_login_mobile
(){
// $code = $this->request->get('code');
$code
=
'021XhRZZ1QOdAS0AqPYZ1IGNZZ1XhRZt'
;
//测试过期code
$code
=
$this
->
request
->
get
(
'code'
);
$url
=
'https://api.weixin.qq.com/sns/oauth2/access_token?appid='
.
$this
->
appkey3
.
'&secret='
.
$this
->
appsecret3
.
'&code='
.
$code
.
'&grant_type=authorization_code'
;
$res
=
$this
->
http_get
(
$url
);
$json_arr
=
json_decode
(
$res
,
true
);
...
...
请
注册
或
登录
后发表评论