Update Login.php

This commit is contained in:
Anyon 2019-07-30 18:14:30 +08:00
parent 3db8d00028
commit 2185124af1

View File

@ -40,8 +40,7 @@ class Login extends Controller
$this->title = '系统登录';
if ($this->request->isGet()) {
// 运行环境检查
list($host,) = explode(':', $this->request->host());
if (in_array($host, ['127.0.0.1', 'localhost', 'thinkadmin.top', 'ctolog.com'])) {
if (in_array($this->request->rootDomain(), ['127.0.0.1', 'localhost', 'thinkadmin.top', 'ctolog.com'])) {
$this->devMode = true;
} else {
$this->devMode = false;