|
@@ -260,7 +260,7 @@ class BookController extends BaseController
|
|
|
private function getCheckBooks($bid_list,$channel)
|
|
|
{
|
|
|
$hidden_cp = getHiddenCp();
|
|
|
- if($this->distribution_channel_id == 7477){
|
|
|
+ if($this->distribution_channel_id != 7477){
|
|
|
$hidden_cp = array_merge($hidden_cp,['lianshang']);
|
|
|
}
|
|
|
//获取书本数量
|
|
@@ -271,7 +271,7 @@ class BookController extends BaseController
|
|
|
->whereIn('book_configs.bid',$bid_list)
|
|
|
->where('book_configs.is_on_shelf',2)
|
|
|
->where('book_configs.charge_type','!=','BOOK')
|
|
|
- ->whereNotIn('book_configs.cp_source',getHiddenCp())
|
|
|
+ ->whereNotIn('book_configs.cp_source',$hidden_cp)
|
|
|
->where('book_categories.pid',$channel)
|
|
|
->count();
|
|
|
if($count == $book_count){
|
|
@@ -288,7 +288,7 @@ class BookController extends BaseController
|
|
|
->whereIn('book_configs.bid',$bid_list)
|
|
|
->where('book_configs.is_on_shelf',2)
|
|
|
->where('book_configs.charge_type','!=','BOOK')
|
|
|
- ->whereNotIn('book_configs.cp_source',getHiddenCp())
|
|
|
+ ->whereNotIn('book_configs.cp_source',$hidden_cp)
|
|
|
->where('book_categories.pid',$channel)
|
|
|
->pluck('book_configs.bid')->all();
|
|
|
$bid_list = array_intersect($bid_list,$bids);
|
|
@@ -298,7 +298,7 @@ class BookController extends BaseController
|
|
|
->leftjoin('book_categories', 'books.category_id', 'book_categories.id')
|
|
|
->where('book_configs.is_on_shelf',2)
|
|
|
->where('book_configs.charge_type','!=','BOOK')
|
|
|
- ->whereNotIn('book_configs.cp_source',getHiddenCp())
|
|
|
+ ->whereNotIn('book_configs.cp_source',$hidden_cp)
|
|
|
->where('book_categories.pid',$channel)
|
|
|
->inRandomOrder()
|
|
|
->limit($supplement_count)
|