Update Login.php

This commit is contained in:
Anyon 2019-07-31 11:13:54 +08:00
parent b3677f40b3
commit 05f7719cb5

View File

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