更新用户模块

This commit is contained in:
2020-03-28 16:52:28 +08:00
parent 89dbc43aea
commit 5ef77bb8f4
6 changed files with 21 additions and 10 deletions
+2 -2
View File
@@ -42,9 +42,9 @@ class Base extends BaseC {
// 是否是超级管理员
define('IS_ROOT', is_administrator());
if (!IS_ROOT && \think\Config::get('admin_allow_ip')) {
if (!IS_ROOT && \think\facade\Config::get('config.admin_allow_ip')) {
// 检查IP地址访问
if (!in_array(get_client_ip(), explode(',', \think\Config::get('admin_allow_ip')))) {
if (!in_array(get_client_ip(), explode(',', \think\facade\Config::get('config.admin_allow_ip')))) {
$this->error('403:禁止访问');
}
}