feat(admin, i18n): enhance reports, draws, config, and player workflows

This commit is contained in:
2026-06-08 17:41:55 +08:00
parent af982bb9f7
commit 7e65c53732
55 changed files with 1986 additions and 804 deletions

View File

@@ -214,15 +214,15 @@ export function JackpotPoolsConsole({ embedded = false }: JackpotPoolsConsolePro
const manualBurst = async (p: AdminJackpotPoolRow) => {
const d = drafts[p.id];
if (!d) return;
const drawId = Number.parseInt(d.manual_burst_draw_id, 10);
if (!Number.isFinite(drawId) || drawId <= 0) {
const drawRef = d.manual_burst_draw_id.trim();
if (drawRef.length === 0) {
toast.error(t("invalidDrawId"));
return;
}
setBurstingId(p.id);
try {
const res = await postAdminJackpotManualBurst(p.id, { draw_id: drawId });
const res = await postAdminJackpotManualBurst(p.id, { draw_id: drawRef });
toast.success(
`${t("manualBurstSuccess")} · ${res.draw_no} · ${res.winner_count} ${t("winnerCount")}`,
);