1、缺少支付幂等性保障

2、增加事务
3、增加金额一致性判断
4、增加后台退款功能
This commit is contained in:
2026-06-11 15:47:10 +08:00
parent 0f56ceedf7
commit 47a231d558
6 changed files with 249 additions and 39 deletions
+4
View File
@@ -240,6 +240,10 @@ export async function getAdminPaymentOrders(params?: { method?: string; status?:
return api.get(`/admin/payment-orders${suffix}`);
}
export async function refundPaymentOrder(orderNo: string): Promise<void> {
await api.post(`/admin/payment-orders/${orderNo}/refund`);
}
export async function getAdminNotifications(): Promise<{ total: number; items: any[] }> {
return api.get('/admin/notifications');
}