Browse Source

Update Login.php

Anyon 5 years ago
parent
commit
4dd297921c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/Login.php

+ 1 - 1
application/admin/controller/Login.php

@@ -43,7 +43,7 @@ class Login extends Controller
                 $this->redirect('@admin');
             } else {
                 $this->domain = Request::host(true);
-                $this->devmode = in_array($this->domain, ['127.0.0.1', 'localhost']) or stripos($this->domain, 'thinkadmin.top') <> false;
+                $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->fetch();