feat:增加微信支付功能
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user