feat(admin,api,player): 结算预览分页、统计图表与返水限额
完善结算计算与预览 API(含后端分页),加强管理端结算/返水/权限,并优化玩家端投注单与队徽展示。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -72,10 +72,13 @@ describe('Bet Validation Rules (B001-B010)', () => {
|
||||
expect(submitted === current).toBe(false);
|
||||
});
|
||||
|
||||
it('B007: same match in parlay rejected', () => {
|
||||
const matchIds = ['1', '1', '2'];
|
||||
const unique = new Set(matchIds);
|
||||
expect(unique.size !== matchIds.length).toBe(true);
|
||||
it('B007: same match legs allowed in parlay (2–5 legs)', () => {
|
||||
const legs = [
|
||||
{ matchId: '1', selectionId: 'a' },
|
||||
{ matchId: '1', selectionId: 'b' },
|
||||
];
|
||||
expect(legs.length).toBeGreaterThanOrEqual(2);
|
||||
expect(legs.length).toBeLessThanOrEqual(5);
|
||||
});
|
||||
|
||||
it('B008: quarter line in parlay rejected', () => {
|
||||
|
||||
Reference in New Issue
Block a user