zhoulj %!s(int64=4) %!d(string=hai) anos
pai
achega
5cc345f5cc
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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')){