切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
Karson
5 years ago
提交
d101bcd3e66b843b14610edeb32111c5cd5fd1d5
2 个父辈
0d800cbb
541a182a
Merge branch 'master' of
https://gitee.com/karson/fastadmin
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
application/admin/command/Api/library/Builder.php
application/admin/library/Auth.php
application/admin/command/Api/library/Builder.php
查看文件 @
d101bcd
...
...
@@ -190,7 +190,7 @@ class Builder
if
(
$subdomain
)
{
$route
=
substr
(
$route
,
4
);
}
$docslist
[
$section
][
$name
]
=
[
$docslist
[
$section
][
$
class
.
$
name
]
=
[
'id'
=>
$counter
,
'method'
=>
is_array
(
$docs
[
'ApiMethod'
][
0
])
?
$docs
[
'ApiMethod'
][
0
][
'data'
]
:
$docs
[
'ApiMethod'
][
0
],
'method_label'
=>
$this
->
generateBadgeForMethod
(
$docs
),
...
...
application/admin/library/Auth.php
查看文件 @
d101bcd
...
...
@@ -183,7 +183,9 @@ class Auth extends \fast\Auth
if
(
Config
::
get
(
'fastadmin.login_unique'
))
{
$my
=
Admin
::
get
(
$admin
[
'id'
]);
if
(
!
$my
||
$my
[
'token'
]
!=
$admin
[
'token'
])
{
$this
->
logout
();
$this
->
logined
=
false
;
//重置登录状态
Session
::
delete
(
"admin"
);
Cookie
::
delete
(
"keeplogin"
);
return
false
;
}
}
...
...
请
注册
或
登录
后发表评论