fix: 回调配置, 调整信用位置, 套餐
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m55s

This commit is contained in:
luo
2026-07-29 18:20:42 +08:00
parent 4394ae0f78
commit 17d2eeebc5
39 changed files with 2687 additions and 1532 deletions

View File

@@ -20,6 +20,17 @@ test('agent recharge rejection posts the rejection reason to the order rejection
post(options) {
calls.push(options)
return Promise.resolve({ code: 0, data: undefined })
},
get(options) {
calls.push(options)
return Promise.resolve({
code: 0,
data: {
methods: ['wechat', 'alipay'],
min_amount: 10000,
max_amount: 100000000
}
})
}
}
`,
@@ -53,6 +64,8 @@ test('agent recharge rejection posts the rejection reason to the order rejection
await AgentRechargeService.rejectAgentRecharge(42, {
rejection_reason: '支付凭证不符合要求'
})
await AgentRechargeService.getPaymentMethods()
await AgentRechargeService.getPaymentStatus(42)
assert.deepEqual(calls, [
{
@@ -60,6 +73,14 @@ test('agent recharge rejection posts the rejection reason to the order rejection
data: {
rejection_reason: '支付凭证不符合要求'
}
},
{
url: '/api/admin/agent-recharges/payment-methods',
params: undefined
},
{
url: '/api/admin/agent-recharges/42/payment-status',
params: undefined
}
])
} finally {