lh 2 месяцев назад
Родитель
Сommit
d1ca30cebb
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      app/Services/DeepSeek/DeepSeekService.php

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

@@ -5061,8 +5061,9 @@ class DeepSeekService
     }
 
     public function getContentByScriptId($script_id) {
-        $content = DB::table('mp_scripts')->where('id', $script_id)->value('content');
-        if (!$content) $content = '';
+        $content = '';
+        $contents = DB::table('mp_script_episode_group')->where('script_id', $script_id)->pluck('content')->toArray();
+        if ($contents) $content = implode(PHP_EOL, $contents);
         return $content;
     }