修复提现拒绝审核参数校验
This commit is contained in:
@@ -526,8 +526,9 @@ func assertWalletAndWithdrawal(t *testing.T, walletService *wallet.Service, with
|
||||
assertEqual(t, "提现申请金额", req.AmountCent, int64(10000))
|
||||
assertEqual(t, "提现申请状态", req.Status, "pending")
|
||||
|
||||
approved := true
|
||||
reviewed, err := withdrawalService.Review(t.Context(), adminID, req.ID, withdrawal.ReviewWithdrawalRequest{
|
||||
Approved: true,
|
||||
Approved: &approved,
|
||||
Remark: "E2E 审核通过",
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user