mirror of https://gitee.com/karson/fastadmin.git
Merge branch 'master' of https://gitee.com/karson/fastadmin
commit
d101bcd3e6
|
|
@ -190,7 +190,7 @@ class Builder
|
||||||
if ($subdomain) {
|
if ($subdomain) {
|
||||||
$route = substr($route, 4);
|
$route = substr($route, 4);
|
||||||
}
|
}
|
||||||
$docslist[$section][$name] = [
|
$docslist[$section][$class . $name] = [
|
||||||
'id' => $counter,
|
'id' => $counter,
|
||||||
'method' => is_array($docs['ApiMethod'][0]) ? $docs['ApiMethod'][0]['data'] : $docs['ApiMethod'][0],
|
'method' => is_array($docs['ApiMethod'][0]) ? $docs['ApiMethod'][0]['data'] : $docs['ApiMethod'][0],
|
||||||
'method_label' => $this->generateBadgeForMethod($docs),
|
'method_label' => $this->generateBadgeForMethod($docs),
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,9 @@ class Auth extends \fast\Auth
|
||||||
if (Config::get('fastadmin.login_unique')) {
|
if (Config::get('fastadmin.login_unique')) {
|
||||||
$my = Admin::get($admin['id']);
|
$my = Admin::get($admin['id']);
|
||||||
if (!$my || $my['token'] != $admin['token']) {
|
if (!$my || $my['token'] != $admin['token']) {
|
||||||
$this->logout();
|
$this->logined = false; //重置登录状态
|
||||||
|
Session::delete("admin");
|
||||||
|
Cookie::delete("keeplogin");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue