|
@@ -74,7 +74,7 @@ class ReadRecordController extends BaseController
|
|
|
|
|
|
if ($res) {
|
|
|
$bids = array_column($res,'bid');
|
|
|
- $channel_id = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $channel_id = $request->input('distribution_channel_id',0);
|
|
|
$book = BookConfigService::getBooksByIds($bids, [], false);//下架图书最近阅读可看到
|
|
|
foreach ($res as $key => &$value) {
|
|
|
$value['cover'] = '';
|
|
@@ -92,7 +92,7 @@ class ReadRecordController extends BaseController
|
|
|
$value['status'] = $val->status;
|
|
|
$value['size'] = $val->size;
|
|
|
$value['author'] = $val->author;
|
|
|
- if($channel_id === 7477){
|
|
|
+ if(is_public_package_channel_id($channel_id)){
|
|
|
$hidden = getHiddenCp();
|
|
|
}else{
|
|
|
$hidden = array_merge(getHiddenCp(),['lianshang']);
|
|
@@ -143,7 +143,7 @@ class ReadRecordController extends BaseController
|
|
|
|
|
|
if ($res) {
|
|
|
$bids = array_column($res,'bid');
|
|
|
- $channel_id = ($package === 'com.beidao.kuaiying.zsy') ? 7477 : 0;
|
|
|
+ $channel_id = $request->input('distribution_channel_id',0);
|
|
|
$book = BookConfigService::getBooksByIds($bids, [], false);//下架图书最近阅读可看到
|
|
|
$book = array_column(($book->toArray()),null,'bid');
|
|
|
foreach ($res as &$value) {
|
|
@@ -162,7 +162,7 @@ class ReadRecordController extends BaseController
|
|
|
$value['status'] = $info['status'];
|
|
|
$value['size'] = $info['size'];
|
|
|
$value['author'] = $info['author'];
|
|
|
- if($channel_id === 7477){
|
|
|
+ if(is_public_package_channel_id($channel_id)){
|
|
|
$hidden = getHiddenCp();
|
|
|
}else{
|
|
|
$hidden = array_merge(getHiddenCp(),['lianshang']);
|