diff --git a/app/common.php b/app/common.php index a59390a..ec63e79 100644 --- a/app/common.php +++ b/app/common.php @@ -36,7 +36,7 @@ function get_system_config($name, $key = '') $config = get_cache('system_config' . $name); } else { $conf = Db::name('config')->where('name', $name)->find(); - if ($conf['content']) { + if (isset($conf['content'])) { $config = unserialize($conf['content']); } set_cache('system_config' . $name, $config); diff --git a/app/home/controller/Login.php b/app/home/controller/Login.php index 31c8f53..d82ff52 100644 --- a/app/home/controller/Login.php +++ b/app/home/controller/Login.php @@ -36,12 +36,12 @@ class Login if (empty($admin)) { $admin = Db::name('Admin')->where(['mobile' => $param['username']])->find(); if (empty($admin)) { - return to_assign(1, '用户名或密码错误'); + return to_assign(1, '用户名或手机号码错误'); } } $param['pwd'] = set_password($param['password'], $admin['salt']); if ($admin['pwd'] !== $param['pwd']) { - return to_assign(1, '用户名或密码错误'); + return to_assign(1, '用户或密码错误'); } if ($admin['status'] != 1) { return to_assign(1, '该用户禁止登录,请与管理者联系'); diff --git a/app/home/view/login/index.html b/app/home/view/login/index.html index faeda7a..d7ae3a1 100644 --- a/app/home/view/login/index.html +++ b/app/home/view/login/index.html @@ -47,7 +47,7 @@