lh преди 3 дни
родител
ревизия
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) {
     public function getContentByScriptId($script_id) {
         $content = '';
         $content = '';
         $contents = DB::table('mp_script_episode_group')->where('script_id', $script_id)->pluck('content')->toArray();
         $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;
         return $content;
     }
     }