feat:增加微信支付功能

This commit is contained in:
lik
2026-11-05 16:31:51 +08:00
parent 770f7ebb1d
commit 23b9de16a6
12 changed files with 2126 additions and 13 deletions
+13 -1
View File
@@ -123,7 +123,19 @@ const EscortRecordSchema = mongoose.Schema(
type: String,
enum: ["", "online_wechat", "offline_cash", "offline_transfer"],
default: "",
comment: "支付方式:线上微信、线下现金、线下转账",
comment: "实际收款方式:线上微信、线下现金、线下转账",
},
// 用户选择的支付渠道;历史订单缺失该字段时展示层按 offline 解释
payChannel: {
type: String,
enum: ["online_wechat", "offline"],
comment: "用户选择的支付渠道",
},
// 当前有效支付流水;历史流水保留在 payment_record 中审计
paymentRecordId: {
type: mongoose.Schema.Types.ObjectId,
default: null,
comment: "当前有效支付流水",
},
status: {
type: String,