Explorar o código

后台ip限制

lizhen_gitee hai 1 ano
pai
achega
5690883104
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();