Browse Source

后台ip限制

lizhen_gitee 1 year ago
parent
commit
5690883104
1 changed files with 1 additions and 1 deletions
  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();