|
@@ -57,9 +57,11 @@ class ChannelRecommendBooksService
|
|
|
|
|
|
static function getRecommendBooks($channel_id,$bid = 0)
|
|
static function getRecommendBooks($channel_id,$bid = 0)
|
|
{
|
|
{
|
|
|
|
+ if(!isset($channel_id)) return [];
|
|
|
|
+
|
|
$bids = self::getMergerBids($channel_id,$bid);
|
|
$bids = self::getMergerBids($channel_id,$bid);
|
|
|
|
|
|
- if(!isset($channel_id)) return [];
|
|
+ if(empty($bids)) return [];
|
|
|
|
|
|
return BookConfigService::getBooksByIds($bids,[],false);
|
|
return BookConfigService::getBooksByIds($bids,[],false);
|
|
}
|
|
}
|