fix: 修正充值订单的审批和拒绝接口调用

This commit is contained in:
2026-01-25 18:30:27 +07:00
parent 60d92c4cec
commit 0b2544fe11

View File

@@ -83,7 +83,7 @@ const columns: TableBaseColumns = [
negativeText: '取消', negativeText: '取消',
onPositiveClick: async () => { onPositiveClick: async () => {
await safeClient(() => await safeClient(() =>
client.api.admin.withdraw({ orderId: row.id }).approve.post({ client.api.admin.deposit.approve({ orderId: row.id }).post({
reviewNote: `管理员通过于 ${dayjs().format('YYYY-MM-DD HH:mm:ss')}` reviewNote: `管理员通过于 ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`
}) })
); );
@@ -108,8 +108,8 @@ const columns: TableBaseColumns = [
negativeText: '取消', negativeText: '取消',
onPositiveClick: async () => { onPositiveClick: async () => {
await safeClient(() => await safeClient(() =>
client.api.admin.withdraw({ orderId: row.id }).reject.post({ client.api.admin.deposit.reject({ orderId: row.id }).post({
rejectReason: `管理员拒绝于 ${dayjs().format('YYYY-MM-DD HH:mm:ss')}` reviewNote: `管理员拒绝于 ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`
}) })
); );
window.$message?.success('操作成功'); window.$message?.success('操作成功');