lh 1 ماه پیش
والد
کامیت
b4d3512922
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 2 2
      app/Services/Anime/AnimeService.php
  2. 2 1
      app/Services/DeepSeek/DeepSeekService.php

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

@@ -1,4 +1,4 @@
-<?php
+<?php
 
 namespace App\Services\Anime;
 
@@ -594,7 +594,7 @@ class AnimeService
 
             // 获取分镜数据并准备插入
             $segments_for_insert = DB::table('mp_episode_segments')
-            ->select('anime_id', 'episode_number', 'act_number', 'act_title', 'segment_number', 'segment_content', 'description', 'composition', 'camera_movement', 'voice_actor', 'dialogue', 'frame_type', 'scene', 'characters', 'tail_frame', 'voice_name', 'voice_type', 'voice_audio_url', 'emotion', 'emotion_type', 'gender', 'speed_ratio', 'loudness_ratio', 'emotion_scale', 'pitch')
+            ->select('anime_id', 'episode_number', 'act_number', 'act_title', 'act_duration', 'segment_number', 'segment_content', 'description', 'composition', 'camera_movement', 'voice_actor', 'dialogue', 'frame_type', 'scene', 'characters', 'tail_frame', 'voice_name', 'voice_type', 'voice_audio_url', 'emotion', 'emotion_type', 'gender', 'speed_ratio', 'loudness_ratio', 'emotion_scale', 'pitch')
             ->where('episode_id', $episode_id)->orderBy('segment_number')->get()->map(function($item) use ($new_episode_id) {
                 $item = (array)$item;
                 $item['episode_id'] = $new_episode_id;

+ 2 - 1
app/Services/DeepSeek/DeepSeekService.php

@@ -5174,7 +5174,7 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
                     'role'    => 'user',
                     'content' => $question
                 ];
-            dd($messages);
+            // dd($messages);
         }else {
             $content = $uploaded_content ? $chapter_content : trim((string)getProp($base_episode, 'content'));
             if (!$content) {
@@ -5934,6 +5934,7 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
                 if ((int)$ace_mode === 1) {   // 全能模式
                     // 如果是新的分段,添加分段标题
                     if ($act_number !== $currentAct) {
+                        $currentAct = $act_number;
                         $content .= "##{$act_title}\n";
                         $content .= "时长:{$act_duration}s\n";
                     }