|
@@ -87,6 +87,9 @@ class BookService
|
|
if (isset($params['weekly_promotion']) && $params['weekly_promotion']) {
|
|
if (isset($params['weekly_promotion']) && $params['weekly_promotion']) {
|
|
$sql->where('is_current_week_promotion', $params['weekly_promotion']);
|
|
$sql->where('is_current_week_promotion', $params['weekly_promotion']);
|
|
}
|
|
}
|
|
|
|
+ if (isset($params['bid_order']) && $params['bid_order']) {
|
|
|
|
+ $sql->orderBy('bid', $params['bid_order']);
|
|
|
|
+ }
|
|
$this->slowQueryParams($sql, $params);
|
|
$this->slowQueryParams($sql, $params);
|
|
if ($is_page) {
|
|
if ($is_page) {
|
|
return $sql->paginate();
|
|
return $sql->paginate();
|