|
@@ -87,10 +87,6 @@ class BookAuditService
|
|
|
// 模块
|
|
|
[$hot, $live, $recom, $new] = [$home['hot'], $home['zhibo'], $home['recom'], $home['new_recom']];
|
|
|
[$hotBids, $liveBids, $recomBids, $newBids] = BookConfigService::HomePageRecomBookCheck($hot, $live, $recom, $new,$package_id, $package,$channel,false);
|
|
|
- echo "<pre><hr>";
|
|
|
- var_export([$hotBids, $liveBids, $recomBids, $newBids] );
|
|
|
- echo "<hr>";
|
|
|
- die();
|
|
|
return [
|
|
|
[
|
|
|
'type' => 'reco_banner',
|
|
@@ -100,25 +96,25 @@ class BookAuditService
|
|
|
[
|
|
|
'type' => 'hot',
|
|
|
'lable' => $hot['label'],
|
|
|
- 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds(self::getCheckBooks($hotBids,$channel,$package,$is_auth),[],false)),
|
|
|
+ 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds($hotBids,[],false)),
|
|
|
],
|
|
|
[
|
|
|
'type' => 'zhibo',
|
|
|
'lable' => $live['label'],
|
|
|
- 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds(self::getCheckBooks($liveBids,$channel,$package,$is_auth),[],false)),
|
|
|
+ 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds($liveBids,[],false)),
|
|
|
],
|
|
|
[
|
|
|
'type' => 'recom',
|
|
|
'lable' => $recom['label'],
|
|
|
// 'books' => collectionTransform(new BookTransformer, collect($books)->whereIn('bid', $recomBids)->all())
|
|
|
- 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds(self::getCheckBooks($recomBids,$channel,$package,$is_auth),[],false)),
|
|
|
+ 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds($recomBids,[],false)),
|
|
|
|
|
|
],
|
|
|
[
|
|
|
'type' => 'new_recom',
|
|
|
'lable' => $new['label'],
|
|
|
// 'books' => collectionTransform(new BookTransformer, collect($books)->whereIn('bid', $newBids)->all())
|
|
|
- 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds(self::getCheckBooks($newBids,$channel,$package,$is_auth),[],false)),
|
|
|
+ 'books' => collectionTransform(new BookTransformer, BookConfigService::getBooksByIds($newBids,[],false)),
|
|
|
],
|
|
|
];
|
|
|
}
|