|
@@ -641,7 +641,7 @@ class BookController extends BaseController
|
|
|
{
|
|
|
$release_type = $request->get('release_type','');
|
|
|
$distribution_id = $this->distribution_channel_id;
|
|
|
- if(empty($release_type)){
|
|
|
+ if(is_empty($release_type)){
|
|
|
//默认原banner
|
|
|
// $recom_banner_type = ['FEMALE', 'PUBLIC'] : ['FEMALE', 'PUBLIC'];
|
|
|
$banner = $this->getDefaultBanner(['FEMALE','PUBLIC']);
|
|
@@ -915,7 +915,7 @@ class BookController extends BaseController
|
|
|
}
|
|
|
|
|
|
$list = ChannelRecommendBooksService::getRecommendBooks($distribution_id,$bid);
|
|
|
- if(!$list->isEmpty()){
|
|
|
+ if(!is_empty($list)){
|
|
|
foreach($list as $key => $item){
|
|
|
$this->incrRecommendNum($distribution_id,$item->bid);
|
|
|
}
|