feat: 管理端支持再次发起订单退款

退款失败或结果不明时可按原退款单号幂等重试,避免只能转人工核销。
This commit is contained in:
lik
2026-11-06 22:20:04 +08:00
parent adaf10376d
commit 295e80a20e
2 changed files with 68 additions and 20 deletions
+2
View File
@@ -99,6 +99,8 @@ function registerRoutes(app) {
router.post("/escort-record/:id/pay", requireAuth, createLimit, handlerPayment.createPayment.bind(handlerPayment));
router.get("/escort-record/:id/pay/status", requireAuth, handlerPayment.queryPayment.bind(handlerPayment));
router.post("/escort-record/:id/refund/query", requireAuth, requireAdmin, handlerPayment.queryRefundResult.bind(handlerPayment));
// 退款失败/结果不明时按同一退款单号再次发起
router.post("/escort-record/:id/refund/retry", requireAuth, requireAdmin, handlerPayment.retryRefund.bind(handlerPayment));
// 线下/人工退款核销:由平台确认已退款后把订单置为 refunded
router.post("/escort-record/:id/refund/manual", requireAuth, requireAdmin, handlerPayment.completeManualRefund.bind(handlerPayment));