清除业务契约双读:抽奖/草稿/时间戳/邮件只认新格式,并删除 legacy 短代码改写。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-23 02:20:42 +08:00
parent 3b550f2124
commit 96314893bb
9 changed files with 23 additions and 281 deletions

View File

@@ -574,11 +574,7 @@ function LotteryPanel({
}
};
const prizes = state.prizes?.length
? state.prizes
: state.slots > 0
? [{ name: "奖品", count: state.slots }]
: [];
const prizes = state.prizes?.length ? state.prizes : [];
const statusBadge = state.drawn
? { cls: "badge-status badge-status-closed", label: "已开奖" }