generated from liutk/owl-admin-base
调整提示
parent
5122ec0130
commit
a3c9d8f25f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue