generated from liutk/owl-admin-base
首页最近比赛取消当天的限制
parent
e90a1802d5
commit
3ec468f499
|
|
@ -36,7 +36,7 @@ class ActivityGameController extends ApiController
|
||||||
$game = ActivityGame::whereHas('activity', function($q){
|
$game = ActivityGame::whereHas('activity', function($q){
|
||||||
return $q->where('state', '>' ,0);
|
return $q->where('state', '>' ,0);
|
||||||
})->show()
|
})->show()
|
||||||
->whereDate('game_at', now())
|
// ->whereDate('game_at', now())
|
||||||
->where('game_at', '>', now())
|
->where('game_at', '>', now())
|
||||||
->where('state', 1)
|
->where('state', 1)
|
||||||
->orderBy('game_at', 'asc')->first();
|
->orderBy('game_at', 'asc')->first();
|
||||||
|
|
@ -46,7 +46,7 @@ class ActivityGameController extends ApiController
|
||||||
$game = ActivityGame::whereHas('activity', function($q){
|
$game = ActivityGame::whereHas('activity', function($q){
|
||||||
return $q->where('state', '>' ,0);
|
return $q->where('state', '>' ,0);
|
||||||
})->show()
|
})->show()
|
||||||
->whereDate('game_at', now())
|
// ->whereDate('game_at', now())
|
||||||
->orderBy('game_at', 'desc')->first();
|
->orderBy('game_at', 'desc')->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue