diff --git a/business/api/pay.go b/business/api/pay.go index 895b9ee..035468a 100644 --- a/business/api/pay.go +++ b/business/api/pay.go @@ -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}) }) }} }