Browse Source

社媒对接

moshaorui 13 hours ago
parent
commit
3113e94d5a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Services/Smm/TwitterService.php

+ 2 - 2
app/Services/Smm/TwitterService.php

@@ -96,7 +96,7 @@ class TwitterService implements SmmPlatformInterface
         Log::info('开始发布图片帖子');
         try {
             $this->twitterOAuth->setApiVersion('1.1'); // 强制使用 v1.1 API
-            $this->twitterOAuth->setTimeouts(10, 30);
+            $this->twitterOAuth->setTimeouts(15, 60);
             $mediaIds = [];
             foreach ($imagePaths as $imagePath) {
                 $imagePath = toStoragePath($imagePath);
@@ -136,7 +136,7 @@ class TwitterService implements SmmPlatformInterface
     public function postVideo($message, $videoPath, $accessToken = null)
     {
         try {
-            $this->twitterOAuth->setTimeouts(10, 120);
+            $this->twitterOAuth->setTimeouts(15, 120);
             $this->twitterOAuth->setApiVersion('1.1');
             $videoPath = toStoragePath($videoPath);
             // Verify file exists and is readable