|
@@ -468,14 +468,16 @@ class BookConfigService
|
|
}
|
|
}
|
|
|
|
|
|
public static function HomePageRecomBookCheck($hotBids, $liveBids, $recomBids, $newBids,$package_id, $package,$channel, $is_external_shelf = true){
|
|
public static function HomePageRecomBookCheck($hotBids, $liveBids, $recomBids, $newBids,$package_id, $package,$channel, $is_external_shelf = true){
|
|
- $data = BookConfigService::getRecommendBids($package, $channel, [], 30);
|
|
|
|
$bids = BookConfigService::getAvailableBIdsbyBids(array_merge($hotBids, $liveBids, $recomBids, $newBids), $package_id,$is_external_shelf);
|
|
$bids = BookConfigService::getAvailableBIdsbyBids(array_merge($hotBids, $liveBids, $recomBids, $newBids), $package_id,$is_external_shelf);
|
|
|
|
+ $data = BookConfigService::getRecommendBids($package, $channel,$bids, 30);
|
|
|
|
+
|
|
if (count($bids) < 1) {
|
|
if (count($bids) < 1) {
|
|
$data = array_chunk($data, 6);
|
|
$data = array_chunk($data, 6);
|
|
$hotBids = array_shift($data);
|
|
$hotBids = array_shift($data);
|
|
$liveBids = array_shift($data);
|
|
$liveBids = array_shift($data);
|
|
$recomBids = array_shift($data);
|
|
$recomBids = array_shift($data);
|
|
$newBids = array_shift($data);
|
|
$newBids = array_shift($data);
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
[$hotBids, $data] = self::bookReplenish(array_intersect($bids, $hotBids), $data);
|
|
[$hotBids, $data] = self::bookReplenish(array_intersect($bids, $hotBids), $data);
|
|
[$liveBids, $data] = self::bookReplenish(array_intersect($bids, $liveBids), $data);
|
|
[$liveBids, $data] = self::bookReplenish(array_intersect($bids, $liveBids), $data);
|