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
b3677f40b3
commit
05f7719cb5
@ -40,7 +40,8 @@ class Login extends Controller
|
||||
$this->title = '系统登录';
|
||||
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;
|
||||
} else {
|
||||
$this->devMode = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user