|
@@ -381,6 +381,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
|
|
|
$page_size = $request->input('page_size', 15);
|
|
|
+ $where['channel_id'] = $this->distribution_channel_id;
|
|
|
$books = BookConfigService::getBooks($where, $order, $page_size);
|
|
|
return response()->pagination(new BookTransformer, $books);
|
|
|
}
|
|
@@ -400,6 +401,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
$bid = BookService::decodeBidStatic($bid);
|
|
|
$where = ['category_id' => $category_id, 'is_on_shelf' => [2]];
|
|
|
+ $where['channel_id'] = $this->distribution_channel_id;
|
|
|
$books = BookConfigService::getBooks($where, [], 4);
|
|
|
$data = [];
|
|
|
foreach ($books as $v) {
|