lh 6 天之前
父節點
當前提交
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;
     }