新增字段

This commit is contained in:
yiyan 2024-11-18 01:12:08 +08:00
parent 3e2ccbeb41
commit bfcee075b6
1 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@ type ToPayRequest struct {
type ToPayResponse struct { type ToPayResponse struct {
Content *jsapi.PrepayWithRequestPaymentResponse `json:"content"` Content *jsapi.PrepayWithRequestPaymentResponse `json:"content"`
PayOrderId string `json:"payOrderId"` PayOrderId string `json:"payOrderId"`
PayType int `json:"payType"` //支付类型 0在线支付 1会员余额支付
} }
// 充值 // 充值
@ -85,7 +86,7 @@ func (p DefParty) toPay() web_iris.Party {
PayId: "", PayId: "",
} }
database.Instance().Model(&models.PayOrder{}).Create(&payOrder) database.Instance().Model(&models.PayOrder{}).Create(&payOrder)
Success(ctx, toPayRequest, ToPayResponse{Content: resp, PayOrderId: orderId}) Success(ctx, toPayRequest, ToPayResponse{Content: resp, PayOrderId: orderId, PayType: 0})
}) })
}} }}
} }