|
@@ -430,7 +430,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
|
|
|
$page_size = $request->input('page_size', 15);
|
|
|
- $where['channel_id'] = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $where['channel_id'] = $request->input('distribution_channel_id',0);
|
|
|
$books = BookConfigService::getBooks($where, $order, $page_size);
|
|
|
return response()->pagination(new BookTransformer, $books);
|
|
|
}
|
|
@@ -458,7 +458,7 @@ class BookController extends BaseController
|
|
|
$where['cp_source'] = "ycsd";
|
|
|
}
|
|
|
|
|
|
- $where['channel_id'] = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $where['channel_id'] = $request->input('distribution_channel_id',0);
|
|
|
|
|
|
$books = BookConfigService::getBooks($where, [], 4);
|
|
|
$data = [];
|
|
@@ -550,7 +550,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $channel_id = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $channel_id = $request->input('distribution_channel_id',0);
|
|
|
$books = collectionTransform(new BookTransformer, BookConfigService::getBookLists(compact('bids','channel_id')));
|
|
|
|
|
|
return response()->success($books);
|
|
@@ -646,7 +646,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
return response()->success([]);
|
|
|
$where = ['is_on_shelf' => [2]];
|
|
|
- $where['channel_id'] = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $where['channel_id'] = $request->input('distribution_channel_id',0);
|
|
|
|
|
|
$books = BookConfigService::getBooks($where, [], 4);
|
|
|
return response()->collection(new BookTransformer(), $books);
|
|
@@ -678,7 +678,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
return response()->success([]);
|
|
|
$where = ['is_on_shelf' => [2]];
|
|
|
- $where['channel_id'] = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $where['channel_id'] = $request->input('distribution_channel_id',0);;
|
|
|
$books = BookConfigService::getBooks($where, [], 4);
|
|
|
return response()->collection(new BookTransformer(), $books);
|
|
|
}
|