|
@@ -38,6 +38,7 @@ class ChapterController extends BaseController
|
|
if (!$book_info) {
|
|
if (!$book_info) {
|
|
return response()->error('PARAM_ERROR');
|
|
return response()->error('PARAM_ERROR');
|
|
}
|
|
}
|
|
|
|
+ $this->book_info = $book_info;
|
|
$lists = $this->getChapterCatalog($bid, $lists, $book_info);
|
|
$lists = $this->getChapterCatalog($bid, $lists, $book_info);
|
|
return response()->collection(new ChapterListTransformer, $lists);
|
|
return response()->collection(new ChapterListTransformer, $lists);
|
|
}
|
|
}
|
|
@@ -49,6 +50,7 @@ class ChapterController extends BaseController
|
|
if (!$book_info) {
|
|
if (!$book_info) {
|
|
return response()->error('PARAM_ERROR');
|
|
return response()->error('PARAM_ERROR');
|
|
}
|
|
}
|
|
|
|
+ $this->book_info = $book_info;
|
|
$page_size = $request->input('page_size', 15);
|
|
$page_size = $request->input('page_size', 15);
|
|
if ($page_size >= 100) $page_size = 100;
|
|
if ($page_size >= 100) $page_size = 100;
|
|
$res = ChapterService::getChapterListsPage($bid, $page_size);
|
|
$res = ChapterService::getChapterListsPage($bid, $page_size);
|