소스 검색

青爻公众号

cqp 10 달 전
부모
커밋
45dcb52ee1
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      app/Service/Weixin/WeixinService.php

+ 4 - 1
app/Service/Weixin/WeixinService.php

@@ -465,7 +465,10 @@ class WeixinService extends Service
 
     public function getArticleList($data){
         list($status, $msg) = $this->rule($data);
-//        if(! $status) return [false, 'IP未入白名单'];
+        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)