lh 4 months ago
parent
commit
5f09087890
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Services/Anime/AnimeService.php

+ 3 - 1
app/Services/Anime/AnimeService.php

@@ -2397,7 +2397,7 @@ class AnimeService
         // 轮询查询任务状态(火山API和即梦AI都需要轮询)
         $start_count = 0;
         $img_url = '';
-        while ($start_count <= 20) {    // 循环20次请求,每3s一次
+        while ($start_count <= 60) {    // 循环20次请求,每3s一次
             sleep(3);
 
             $task = MpGeneratePicTask::where('id', $task_id)->first();
@@ -2412,6 +2412,8 @@ class AnimeService
             if ($task->status === 'failed') {
                 return '';
             }
+
+            if ($isVolcModel) continue;
             
             // 查询任务状态
             $statusInfo = $this->aiImageGenerationService->queryTaskStatus($task);