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

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

@@ -10654,7 +10654,11 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
     public function getContentByScriptId($script_id) {
         $content = '';
         $contents = DB::table('mp_script_episode_group')->where('script_id', $script_id)->pluck('content')->toArray();
-        if ($contents) $content = implode(PHP_EOL, $contents);
+        if ($contents) {
+            $content = implode(PHP_EOL, $contents);
+        }else {
+            $content = DB::table('mp_scripts')->where('id', $script_id)->value('content');
+        }
         return $content;
     }