新增字段
This commit is contained in:
+2
-1
@@ -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})
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user