1、缺少支付幂等性保障
2、增加事务 3、增加金额一致性判断 4、增加后台退款功能
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user