瀏覽代碼

青爻公众号

cqp 10 月之前
父節點
當前提交
3e0ee52659
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      app/Service/Weixin/WeixinService.php

+ 10 - 10
app/Service/Weixin/WeixinService.php

@@ -573,11 +573,11 @@ class WeixinService extends Service
     }
 
     public function getArticleList($data){
-        list($status, $msg) = $this->rule($data);
-        if(! $status) {
-            file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
-            return [false, 'IP未入白名单'];
-        }
+//        list($status, $msg) = $this->rule($data);
+//        if(! $status) {
+//            file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
+//            return [false, 'IP未入白名单'];
+//        }
 
         $model = WxArticleDetail::where('del_time',0)
             ->where('is_deleted', 0)
@@ -605,11 +605,11 @@ class WeixinService extends Service
     }
 
     public function getArticleContent($data){
-        list($status, $msg) = $this->rule($data);
-        if(! $status) {
-            file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
-            return [false, 'IP未入白名单'];
-        }
+//        list($status, $msg) = $this->rule($data);
+//        if(! $status) {
+//            file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
+//            return [false, 'IP未入白名单'];
+//        }
 
         if(empty($data['id'])) return [false, 'ID不能为空'];