调整提示

main
liutk 2024-06-07 21:16:24 +08:00
parent 5122ec0130
commit a3c9d8f25f
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ class ActivityGameService
return $res;
}
//判断活动是否还能参加
if($game->activity->start_at > now() || $game->activity->end_at < now()){
if($game->activity->start_at > now()){
$res['message'] = '活动还未开始,请选择其他活动参与';
return $res;
}
if($game->activity->end_at < now()){
$res['message'] = '活动已结束,请选择其他活动参与';
return $res;
}