|
|
@@ -1855,6 +1855,18 @@ class DeepSeekService
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ public function getBookContent($data) {
|
|
|
+ $bid = getProp($data, 'bid');
|
|
|
+ $start_sequence = getProp($data, 'start_sequence');
|
|
|
+ $end_sequence = getProp($data, 'end_sequence');
|
|
|
+
|
|
|
+ $chapter_contents = DB::table('chapters as c')->leftJoin('chapter_contents as cc', 'c.chapter_content_id', 'cc.id')->where('c.bid', $bid)->where('c.is_check', 1)->where('c.is_deleted', 0)->whereBetween('c.sequence', [$start_sequence, $end_sequence])
|
|
|
+ ->orderBy('c.sequence')->pluck('cc.content')->toArray();
|
|
|
+ $return_content = filterContent(implode(PHP_EOL, $chapter_contents));
|
|
|
+
|
|
|
+ return $return_content;
|
|
|
+ }
|
|
|
+
|
|
|
public function exportScript($data) {
|
|
|
$filename = getProp($data, 'filename');
|
|
|
$script_id = getProp($data, 'script_id');
|