소스 검색

工作流添加

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

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

@@ -42,7 +42,7 @@ class WeixinService extends Service
     public function getPublicWxArticle($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);
+//            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未入白名单'];
         }
 
@@ -72,7 +72,7 @@ class WeixinService extends Service
     public function getPublicWxArticleDetail($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);
+//            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未入白名单'];
         }
 
@@ -98,7 +98,7 @@ class WeixinService extends Service
     public function getPublicWxMaterial($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);
+//            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未入白名单'];
         }
 
@@ -126,7 +126,7 @@ class WeixinService extends Service
     public function getPublicWxDraft($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);
+//            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未入白名单'];
         }
 
@@ -154,7 +154,7 @@ class WeixinService extends Service
     public function getWxFile($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);
+//            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未入白名单'];
         }