pull/220/head
Karson 2020-08-12 21:07:19 +08:00
commit d101bcd3e6
2 changed files with 4 additions and 2 deletions

View File

@ -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),

View File

@ -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;
}
}