|
@@ -5061,8 +5061,9 @@ class DeepSeekService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function getContentByScriptId($script_id) {
|
|
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;
|
|
return $content;
|
|
|
}
|
|
}
|
|
|
|
|
|