feat: add smoke tests, agent credit ledger, and player cashback page

Introduce admin smoke-test suite with API probes, agent credit transaction history, and player cashback records; fix SmokeTestModule DI and polish admin/player UI assets.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-09 16:05:48 +08:00
parent 9c6c5e51f3
commit d5e7c8edb3
52 changed files with 3357 additions and 67 deletions

View File

@@ -92,7 +92,7 @@ const i18n = createI18n({
tx_bet_push: '投注退水',
tx_bet_refund: '投注退款',
tx_bet_void: '投注撤销',
tx_cashback: '返水发放',
tx_cashback: '返水入账',
tx_resettle: '重新结算',
stats_income: '收入',
stats_expense: '支出',
@@ -120,6 +120,23 @@ const i18n = createI18n({
ref_bet: '投注',
ref_deposit: '存款',
ref_withdraw: '提款',
view_cashbacks: '返水明细',
view_cashbacks_detail: '查看返水周期明细',
cashback_filter_hint: '此处为入账流水;周期、比例等详见返水明细。',
detail_cashback_link: '查看返水明细',
ref_cashback: '返水批次',
},
cashback: {
title: '返水明细',
list_title: '发放明细',
total_received: '累计返水',
record_count: '共 {n} 笔',
period: '统计周期',
effective_stake: '有效投注',
bet_count: '{n} 笔注单',
empty: '暂无返水记录',
empty_hint: '返水由后台按周期统计并发放,到账后可在此查看。',
ledger_hint: '每笔返水确认后,账单中会有对应的「返水入账」流水,金额一致。',
},
bet: {
bet_slip: '投注单',
@@ -376,7 +393,7 @@ const i18n = createI18n({
tx_bet_push: 'Bet Push',
tx_bet_refund: 'Bet Refund',
tx_bet_void: 'Bet Voided',
tx_cashback: 'Cashback Distribution',
tx_cashback: 'Cashback credit',
tx_resettle: 'Resettlement',
stats_income: 'Income',
stats_expense: 'Expense',
@@ -404,6 +421,23 @@ const i18n = createI18n({
ref_bet: 'Bet',
ref_deposit: 'Deposit',
ref_withdraw: 'Withdraw',
view_cashbacks: 'Cashback details',
view_cashbacks_detail: 'View cashback details (period/rate)',
cashback_filter_hint: 'This list shows wallet credits; see cashback details for period and rate.',
ref_cashback: 'Cashback batch',
detail_cashback_link: 'View cashback details',
},
cashback: {
title: 'Cashback Details',
list_title: 'Payout details',
total_received: 'Total cashback',
record_count: '{n} record(s)',
period: 'Period',
effective_stake: 'Effective stake',
bet_count: '{n} bet(s)',
empty: 'No cashback records yet',
empty_hint: 'Cashback is issued by the platform after each settlement period.',
ledger_hint: 'Matches wallet entries under the Cashback filter; amounts are the same.',
},
bet: {
bet_slip: 'Bet Slip',
@@ -666,7 +700,7 @@ const i18n = createI18n({
tx_bet_push: 'Pertaruhan Seri',
tx_bet_refund: 'Bayaran Balik',
tx_bet_void: 'Pertaruhan Dibatalkan',
tx_cashback: 'Pembayaran Cashback',
tx_cashback: 'Kredit rebat',
tx_resettle: 'Penyelesaian Semula',
stats_income: 'Pendapatan',
stats_expense: 'Perbelanjaan',
@@ -694,6 +728,23 @@ const i18n = createI18n({
ref_bet: 'Pertaruhan',
ref_deposit: 'Deposit',
ref_withdraw: 'Pengeluaran',
view_cashbacks: 'Butiran rebat',
view_cashbacks_detail: 'Lihat butiran rebat (tempoh/kadar)',
cashback_filter_hint: 'Senarai ini ialah kredit dompet; tempoh dan kadar ada di butiran rebat.',
ref_cashback: 'Batch rebat',
detail_cashback_link: 'Lihat butiran rebat',
},
cashback: {
title: 'Butiran Rebat',
list_title: 'Butiran pembayaran',
total_received: 'Jumlah rebat',
record_count: '{n} rekod',
period: 'Tempoh',
effective_stake: 'Pertaruhan sah',
bet_count: '{n} pertaruhan',
empty: 'Tiada rekod rebat',
empty_hint: 'Rebat dikeluarkan oleh platform mengikut kitaran penyelesaian.',
ledger_hint: 'Sepadan dengan entri dompet di penapis Rebat; jumlah adalah sama.',
},
bet: {
bet_slip: 'Slip Pertaruhan',