新增字段
This commit is contained in:
parent
3e2ccbeb41
commit
bfcee075b6
|
|
@ -40,6 +40,7 @@ type ToPayRequest struct {
|
|||
type ToPayResponse struct {
|
||||
Content *jsapi.PrepayWithRequestPaymentResponse `json:"content"`
|
||||
PayOrderId string `json:"payOrderId"`
|
||||
PayType int `json:"payType"` //支付类型 0在线支付 1会员余额支付
|
||||
}
|
||||
|
||||
// 充值
|
||||
|
|
@ -85,7 +86,7 @@ func (p DefParty) toPay() web_iris.Party {
|
|||
PayId: "",
|
||||
}
|
||||
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})
|
||||
})
|
||||
}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue