zz 4 年之前
父節點
當前提交
6472185291
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 4 0
      app/Jobs/TikTokUserCharge.php
  2. 4 0
      app/Jobs/TikTokUserRegister.php

+ 4 - 0
app/Jobs/TikTokUserCharge.php

@@ -48,6 +48,10 @@ class TikTokUserCharge implements ShouldQueue
             'time' => $this->time,
             'source' => 'wdy'
         ];
+        
+        if( date('Y-m-d',strtotime( $this->time )) != date('Y-m-d')){
+            return ;
+        }
         $params['sign'] = _sign($params, SysConsts::TIKTOK_KEY);
         $url = 'https://newtrackapi.zhuishuyun.com/api/user/tiktokUserChargePush';
         $response =  $client->request('post', $url, ['form_params' => $params])->getBody()->getContents();

+ 4 - 0
app/Jobs/TikTokUserRegister.php

@@ -60,6 +60,10 @@ class TikTokUserRegister implements ShouldQueue
             'time' => $this->time,
             'source' => 'wdy'
         ];
+        if( date('Y-m-d',strtotime( $this->time )) != date('Y-m-d')){
+            return ;
+        }
+        
         $params['sign'] = _sign($params, SysConsts::TIKTOK_KEY);
         $url = 'https://newtrackapi.zhuishuyun.com/api/user/tiktokUserPush';
         $response =  $client->request('post', $url, ['form_params' => $params])->getBody()->getContents();