|
@@ -47,7 +47,7 @@ class Auction extends BaseModel
|
|
|
$day = strtotime(date('Y-m-d'));
|
|
|
$tomorrow = strtotime(date('Y-m-d', strtotime('+1 day')));
|
|
|
foreach ($list as $k => $v){
|
|
|
- $list[$k]['b_count'] = AuctionBooking::where([['create_time', '>=', $day], ['create_time', '<=', $tomorrow], ['auction_id', '=', $list[$k]['id']]])->count();
|
|
|
+ $list[$k]['b_count'] = AuctionBooking::where([['frequency', '=', $v['frequency']], ['auction_id', '=', $v['id']]])->count();
|
|
|
|
|
|
|
|
|
// $list[$k]['u_count'] = AuctionBooking::alias('a')
|