feat(admin,api,player): 代理层级管理、额度上下分与玩家钱包详情
新增代理管理器与二级代理体系,完善信用额度/上下分上下文与冻结策略;代理端玩家与子代理管理增强;玩家端新增钱包详情页与交易筛选优化。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,6 +63,16 @@ describe('Agent Credit Rules', () => {
|
||||
const canDeposit = agentId === playerParentId;
|
||||
expect(canDeposit).toBe(false);
|
||||
});
|
||||
|
||||
it('A008: admin deposit cannot exceed parent agent available credit', () => {
|
||||
const creditLimit = 5000;
|
||||
const usedCredit = 4800;
|
||||
const depositAmount = 300;
|
||||
const available = creditLimit - usedCredit;
|
||||
expect(depositAmount).toBeGreaterThan(available);
|
||||
const allowed = depositAmount <= available;
|
||||
expect(allowed).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Bet Validation Rules (B001-B010)', () => {
|
||||
|
||||
Reference in New Issue
Block a user