From bfcee075b6e56a54dce70dd495844ad689269127 Mon Sep 17 00:00:00 2001 From: yiyan Date: Mon, 18 Nov 2024 01:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/api/pay.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}) }) }} }