浏览代码

提交数据

lvhao 3 月之前
父节点
当前提交
6d157be8fe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/CoreApp/controllers/Apidsyskxcx.php

+ 3 - 3
core/CoreApp/controllers/Apidsyskxcx.php

@@ -25,9 +25,9 @@ class Apidsyskxcx extends Start_Controller
     {
         $ip = $_SERVER['REMOTE_ADDR'];
 
-        if (!in_array($ip, $this->ip)) {
-            exit("Unauthorized access");
-        }
+        // if (!in_array($ip, $this->ip)) {
+        //     exit("Unauthorized access");
+        // }
         $user_agent = empty($_SERVER['HTTP_USER_AGENT']) ? "" : $_SERVER['HTTP_USER_AGENT'];
         $token = empty($_SERVER['HTTP_X_AUTH_TOKEN']) ? "" : $_SERVER['HTTP_X_AUTH_TOKEN'];
         $time =  $this->input->get('time', true);