This commit is contained in:
苏尹岚
2021-02-24 18:10:11 +08:00
parent 1ab1992917
commit 5ae8814ef4
4 changed files with 42 additions and 38 deletions

View File

@@ -65,7 +65,7 @@ func (c *JxOrderController) Pay4Order() {
// @router /Pay4User [post]
func (c *JxOrderController) Pay4User() {
c.callPay4User(func(params *tJxorderPay4UserParams) (retVal interface{}, errCode string, err error) {
retVal, err = localjx.Pay4User(params.Ctx, params.ThingID, params.PayType, params.VendorPayType)
retVal, err = localjx.Pay4User(params.Ctx, params.ThingID, params.VendorOrderID, params.PayType, params.VendorPayType)
return retVal, "", err
})
}
@@ -372,7 +372,7 @@ func (c *JxOrderController) ReceiveCoupons() {
// @Title 创建门店账户订单
// @Description 创建门店账户订单
// @Param token header string true "认证token"
// @Param orderType formData int true "订单类型,1为账户充值"
// @Param orderType formData int true "订单类型,4为门店账户订单"
// @Param storeID formData int true "门店ID"
// @Param price formData int true "支付金额"
// @Success 200 {object} controllers.CallResult
@@ -380,7 +380,7 @@ func (c *JxOrderController) ReceiveCoupons() {
// @router /CreateStoreAcctOrder [post]
func (c *JxOrderController) CreateStoreAcctOrder() {
c.callCreateStoreAcctOrder(func(params *tJxorderCreateStoreAcctOrderParams) (retVal interface{}, errCode string, err error) {
localjx.CreateStoreAcctOrder(params.Ctx, params.OrderType, params.StoreID, params.Price)
retVal, err = localjx.CreateStoreAcctOrder(params.Ctx, params.OrderType, params.StoreID, params.Price)
return retVal, "", err
})
}