|
@@ -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
|