generated from liutk/owl-admin-base
调整取消每日限制竞猜一次
parent
c0477c9fc8
commit
09f9309b3a
|
|
@ -31,12 +31,12 @@ class ActivityGameService
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
if(UserGame::where([
|
// if(UserGame::where([
|
||||||
'user_id' => $user->id,
|
// 'user_id' => $user->id,
|
||||||
])->whereDate('created_at', now())->exists()){
|
// ])->whereDate('created_at', now())->exists()){
|
||||||
$res['message'] = '您今日已参与竞猜,请明天再来';
|
// $res['message'] = '您今日已参与竞猜,请明天再来';
|
||||||
return $res;
|
// return $res;
|
||||||
}
|
// }
|
||||||
//判断该场竞猜是否还能参加
|
//判断该场竞猜是否还能参加
|
||||||
if($game->state != 1 || $game->game_at <= now()){
|
if($game->state != 1 || $game->game_at <= now()){
|
||||||
$res['message'] = '该场竞猜已结束,请选择其他场次参与';
|
$res['message'] = '该场竞猜已结束,请选择其他场次参与';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue