소스 검색

后台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();