|
@@ -378,7 +378,7 @@ class UserController extends BaseController
|
|
|
$value['last_chapter'] = $val->last_chapter;
|
|
|
if($val->status == 0){
|
|
|
$value['update_count'] = DB::table('book_updates')
|
|
|
- ->where('bid',$val->bid)->where('type','add_chapter')
|
|
|
+ ->where('bid',$val->bid)->where('update_type','add_chapter')
|
|
|
->where('created_at','>=',date('Y-m-d H:i:s',$value['time']))
|
|
|
->count();
|
|
|
}
|
|
@@ -401,7 +401,7 @@ class UserController extends BaseController
|
|
|
$bids = Cookie::get('sign_recomand_bids');
|
|
|
if(!$bids){
|
|
|
$bid_array = Redis::Srandmember($set_key,16);
|
|
|
- Log::info($bid_array);
|
|
|
+ //Log::info($bid_array);
|
|
|
$time = strtotime(date('Y-m-d',time()+86400))-time();
|
|
|
$new_bid_array = [];
|
|
|
foreach ($bid_array as $item){
|
|
@@ -414,7 +414,7 @@ class UserController extends BaseController
|
|
|
$bids = implode(',',$new_bid_array);
|
|
|
Cookie::queue('sign_recomand_bids',$bids,$time);
|
|
|
}
|
|
|
- Log::info($bids);
|
|
|
+ //Log::info($bids);
|
|
|
$result = DB::select(sprintf('select book_configs.book_name,intro,bid,books.category_name,book_configs.cover,first_cid,
|
|
|
(select GROUP_CONCAT(tags) from book_tags where bid = book_configs.bid) as tag from book_configs
|
|
|
left join books on books.id = book_configs.bid left join book_categories on book_categories.id = books.category_id
|