增加後台圖檔旋轉功能。加強報名地址檢查。修正前台文字。增加前後台報名欄位。設定報名欄位TWID為UNIQUE。修正前台報名可以連續送出的問題。

This commit is contained in:
Eric Li
2025-06-19 12:02:27 +08:00
parent 32b04d09c3
commit 7529061de5
17 changed files with 171 additions and 15 deletions

View File

@ -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();