lh 2 miesięcy temu
rodzic
commit
56449a263b

+ 4 - 4
app/Services/AIGeneration/AIImageGenerationService.php

@@ -55,8 +55,8 @@ class AIImageGenerationService
             'task_id' => $taskId,
             'task_id' => $taskId,
             'alias_segment_id' => $params['alias_segment_id'] ?? 0,
             'alias_segment_id' => $params['alias_segment_id'] ?? 0,
             'prompt' => $params['prompt'] ?? '',
             'prompt' => $params['prompt'] ?? '',
-            'width' => $params['width'] ?? 2048,
-            'height' => $params['height'] ?? 2048,
+            'width' => $params['width'] ?? 1600,
+            'height' => $params['height'] ?? 2848,
             'image_num' => $params['image_num'] ?? 1,
             'image_num' => $params['image_num'] ?? 1,
             'scale' => $params['scale'] ?? 50,
             'scale' => $params['scale'] ?? 50,
             'ref_img_url' => $params['ref_img_urls'] ?? null,
             'ref_img_url' => $params['ref_img_urls'] ?? null,
@@ -104,8 +104,8 @@ class AIImageGenerationService
             'task_id' => $taskId,
             'task_id' => $taskId,
             'alias_segment_id' => $params['alias_segment_id'] ?? 0,
             'alias_segment_id' => $params['alias_segment_id'] ?? 0,
             'prompt' => $params['prompt'] ?? '',
             'prompt' => $params['prompt'] ?? '',
-            'width' => $params['width'] ?? 2048,
-            'height' => $params['height'] ?? 2048,
+            'width' => $params['width'] ?? 1600,
+            'height' => $params['height'] ?? 2848,
             'image_num' => $params['image_num'] ?? 1,
             'image_num' => $params['image_num'] ?? 1,
             'scale' => $params['scale'] ?? 50,
             'scale' => $params['scale'] ?? 50,
             'ref_img_url' => $params['ref_img_urls'] ?? null,
             'ref_img_url' => $params['ref_img_urls'] ?? null,

+ 3 - 3
app/Services/AIGeneration/AIVideoGenerationService.php

@@ -1915,9 +1915,9 @@ class AIVideoGenerationService
     {
     {
         try {
         try {
             // 获取分镜信息
             // 获取分镜信息
-            $segment = DB::table('mp_episode_segments')
-                ->where('segment_id', $segmentId)
-                ->select('uid', 'anime_id', 'episode_number', 'tail_frame')
+            $segment = DB::table('mp_episode_segments as a')->leftJoin('mp_animes as b', 'a.anime_id', 'b.id')
+                ->where('a.segment_id', $segmentId)
+                ->select('b.uid', 'a.anime_id', 'a.episode_number', 'a.tail_frame')
                 ->first();
                 ->first();
 
 
             if (!$segment) {
             if (!$segment) {

+ 2 - 2
app/Services/Anime/AnimeService.php

@@ -3760,8 +3760,8 @@ class AnimeService
                 'prompt' => $prompt,
                 'prompt' => $prompt,
                 'model' => $model,
                 'model' => $model,
                 'ref_img_urls' => [],
                 'ref_img_urls' => [],
-                'width' => 2048,
-                'height' => 2048
+                'width' => 1600,
+                'height' => 2848
             ];
             ];
             
             
             $task = $this->aiImageGenerationService->createImageGenerationTask($params);
             $task = $this->aiImageGenerationService->createImageGenerationTask($params);