feat: 记录并展示订单退款流水号与失败原因

- 订单 payment 新增 refundNo/refundedAt,线上退款成功回填微信退款单号
- 人工核销退款支持录入退款流水号
- pay/status 返回退款概要(单号、流水号、状态、金额、最近失败原因)
- retryRefund 补充微信支付未配置检查
This commit is contained in:
lik
2026-11-06 22:46:15 +08:00
parent 295e80a20e
commit d21f5da682
2 changed files with 47 additions and 4 deletions
+11
View File
@@ -144,6 +144,17 @@ const EscortRecordSchema = mongoose.Schema(
default: "unpaid",
comment: "支付状态:未支付、部分支付、已支付、退款中、已退款",
},
// 退款流水号:线上退款回填微信退款单号,人工核销由管理员录入
refundNo: {
type: String,
default: "",
comment: "退款流水号",
},
refundedAt: {
type: Date,
default: null,
comment: "退款完成时间",
},
},
/**