Browse Source

动漫制作新增剧本ID的绑定

lh 16 hours ago
parent
commit
53ce8f1c81
2 changed files with 11 additions and 0 deletions
  1. 1 0
      app/Services/Anime/AnimeService.php
  2. 10 0
      app/Services/DeepSeek/DeepSeekService.php

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

@@ -240,6 +240,7 @@ class AnimeService
             'content'       => $content,
             'art_style_type'    => $input_art_style,
             'ace_mode'      => $ace_mode,
+            'script_id'     => $script_id,
             'extra_products'    => json_encode($extra_products, 256),
             'created_at'    => date('Y-m-d H:i:s'),
             'updated_at'    => date('Y-m-d H:i:s'),

+ 10 - 0
app/Services/DeepSeek/DeepSeekService.php

@@ -4144,6 +4144,11 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
             }
         }
 
+        // 如果有剧本ID则进行绑定
+        if ($script_id) {
+            $table_data['script_id'] = $script_id;
+        }
+
         $single_episode = [];
         try {
             DB::beginTransaction();
@@ -6469,6 +6474,11 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
             $table_data['extra_products'] = json_encode($extra_products, 256);
         }
 
+        // 如果有剧本ID则进行绑定
+        if ($script_id) {
+            $table_data['script_id'] = $script_id;
+        }
+
         $single_episode = [];
         try {
             DB::beginTransaction();