切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
2d91e7c58953ff8e77a57720c1935af4e85007b9
1 个父辈
1bb300e3
1 个管道 的构建
通过
耗费 2 秒
token设置成永久有效
变更
2
构建
2
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
8 行增加
和
0 行删除
application/api/controller/User.php
application/api/controller/v2/User.php
application/api/controller/User.php
查看文件 @
2d91e7c
...
...
@@ -788,6 +788,8 @@ class User extends Api
$user
=
Third
::
where
(
$where
)
->
find
();
$sessionKey
[
'token'
]
=
''
;
if
(
$user
)
{
// 登录,token永久
$this
->
auth
->
keeptime
();
$this
->
auth
->
direct
(
$user
[
'user_id'
]);
$sessionKey
[
'token'
]
=
$this
->
auth
->
getToken
();
}
...
...
@@ -908,6 +910,8 @@ class User extends Api
];
Third
::
create
(
$third_insert
);
}
// 登录,token永久
$this
->
auth
->
keeptime
();
$login
=
$this
->
auth
->
direct
(
$user_id
);
if
(
!
$result
||
!
$login
)
{
Db
::
rollback
();
...
...
application/api/controller/v2/User.php
查看文件 @
2d91e7c
...
...
@@ -682,6 +682,8 @@ class User extends Api
$user
=
Third
::
where
(
$where
)
->
find
();
$sessionKey
[
'token'
]
=
''
;
if
(
$user
)
{
// 登录,token永久
$this
->
auth
->
keeptime
();
$this
->
auth
->
direct
(
$user
[
'user_id'
]);
$sessionKey
[
'token'
]
=
$this
->
auth
->
getToken
();
}
...
...
@@ -802,6 +804,8 @@ class User extends Api
];
Third
::
create
(
$third_insert
);
}
// 登录,token永久
$this
->
auth
->
keeptime
();
$login
=
$this
->
auth
->
direct
(
$user_id
);
if
(
!
$result
||
!
$login
)
{
Db
::
rollback
();
...
...
请
注册
或
登录
后发表评论