zhoulj 4 rokov pred
rodič
commit
5cc345f5cc
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      app/Jobs/TikTokUserCharge.php

+ 6 - 0
app/Jobs/TikTokUserCharge.php

@@ -44,6 +44,11 @@ class TikTokUserCharge implements ShouldQueue
     public function handle()
     {
         $client = new Client();
+        if(empty($this->time)){
+            \Log::info('origin_params:'.$this->time);
+            $this->time = date('Y-m-d H:i:s');
+        }
+        
         $params = [
             'uid' => $this->uid,
             'amount' => $this->amount,
@@ -51,6 +56,7 @@ class TikTokUserCharge implements ShouldQueue
             'source' => 'wdy'
         ];
         
+        
         \Log::info('TikTokUserCharge:'.json_encode($params));
         
 //         if( date('Y-m-d',strtotime( $this->time )) != date('Y-m-d')){