增加後台圖檔旋轉功能。加強報名地址檢查。修正前台文字。增加前後台報名欄位。設定報名欄位TWID為UNIQUE。修正前台報名可以連續送出的問題。
This commit is contained in:
@ -53,6 +53,11 @@ class HealthAllowanceFillFormController extends Controller
|
||||
} else {
|
||||
$enable = false;
|
||||
}
|
||||
|
||||
$passCount = EventHealthAllowance::where('check_state', 2)->count();
|
||||
if ($passCount >= $eventInfo['limit']) {
|
||||
$enable = false;
|
||||
}
|
||||
}
|
||||
|
||||
return view('health_allowance', [
|
||||
@ -95,6 +100,11 @@ class HealthAllowanceFillFormController extends Controller
|
||||
} else {
|
||||
throw new \Exception('活動已截止。');
|
||||
}
|
||||
|
||||
$passCount = EventHealthAllowance::where('check_state', 2)->count();
|
||||
if ($passCount >= $eventInfo['limit']) {
|
||||
throw new \Exception('活動已截止。');
|
||||
}
|
||||
}
|
||||
|
||||
DB::beginTransaction();
|
||||
|
Reference in New Issue
Block a user