|
@@ -42,10 +42,10 @@ class Login extends Controller
|
|
|
if (NodeService::islogin()) {
|
|
|
$this->redirect('@admin');
|
|
|
} else {
|
|
|
+ $this->title = '系统登录';
|
|
|
$this->domain = Request::host(true);
|
|
|
- $this->devmode = in_array($this->domain, ['127.0.0.1', 'localhost']) or stripos($this->domain, 'thinkadmin.top') !== false;
|
|
|
if (!($this->loginskey = session('loginskey'))) session('loginskey', $this->loginskey = uniqid());
|
|
|
- $this->title = '系统登录';
|
|
|
+ $this->devmode = in_array($this->domain, ['127.0.0.1', 'localhost']) || is_numeric(stripos($this->domain, 'thinkadmin.top'));
|
|
|
$this->fetch();
|
|
|
}
|
|
|
} else {
|