mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Login.php
This commit is contained in:
parent
3db8d00028
commit
2185124af1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user