feat(admin,api,player): settlement stats, team crests, MS fields and list bet summary

This commit is contained in:
2026-06-04 17:30:48 +08:00
parent cc737e2924
commit 9fcee31a9a
27 changed files with 2296 additions and 427 deletions

View File

@@ -90,6 +90,12 @@ export type AdminMatchDetail = {
matchName: string;
stage?: string;
groupName?: string;
score?: {
htHome: number;
htAway: number;
ftHome: number;
ftAway: number;
} | null;
markets?: AdminMarket[];
};
@@ -142,6 +148,11 @@ export function buildPlatformPayload(form: MatchCreateForm) {
if (!homeOk || !awayOk) {
throw new FormValidationError('err.teams_required');
}
const homeKey = `${form.homeTeamZh.trim()}|${form.homeTeamEn.trim()}|${form.homeTeamMs.trim()}`.toLowerCase();
const awayKey = `${form.awayTeamZh.trim()}|${form.awayTeamEn.trim()}|${form.awayTeamMs.trim()}`.toLowerCase();
if (homeKey === awayKey) {
throw new FormValidationError('err.teams_same');
}
if (
!form.leagueId.trim() &&
!form.leagueZh.trim() &&