浏览代码

后台ip限制

lizhen_gitee 1 年之前
父节点
当前提交
5690883104
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/common/controller/Backend.php

+ 1 - 1
application/common/controller/Backend.php

@@ -121,7 +121,7 @@ use think\Validate;
         $ip = request()->ip();
         $count = Db::name('ip')->where(['ip' => $ip])->count();
         if (!$count) {
-            $this->error(__('You have no permission') . $ip, '');
+            //$this->error(__('You have no permission') . $ip, '');
         }
 
         $modulename = $this->request->module();