Browse Source

社媒对接

moshaorui 13 hours ago
parent
commit
b45f363efc

+ 1 - 1
app/Distributor/Repositories/SmmPostLog.php

@@ -67,7 +67,7 @@ class SmmPostLog extends EloquentRepository
         }
 
         //找出待发送与发送失败的日志
-        $result = $log->wherein('status', [0,3])->where('request_count', '<=', 2)->where('send_time', '<', Carbon::now())->limit($limit)->get();
+        $result = $log->wherein('status', [0,3])->where('request_count', '<=', 1)->where('send_time', '<', Carbon::now())->limit($limit)->get();
         return $result;
     }
 

+ 1 - 0
app/Services/Smm/TwitterService.php

@@ -311,6 +311,7 @@ class TwitterService implements SmmPlatformInterface
             'media' => ['media_ids' => $media_ids]
         ];
         $data = json_encode($data);
+        Log::info('发布推文数据:'.$data);
         return $this->twitterApiRequest($this->tweet_url, 'POST',$data , ['Content-Type: application/json']);
     }