1
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner"
|
"git.rosy.net.cn/jx-callback/business/partner"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"git.rosy.net.cn/jx-callback/globals/api"
|
"git.rosy.net.cn/jx-callback/globals/api"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -93,6 +94,7 @@ func RefundOrderByLaKaLa(ctx *jxcontext.Context, orderPay *model.OrderPay, afsOr
|
|||||||
RefundType: "",
|
RefundType: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
globals.SugarLogger.Debugf("-----param-RefundOrder := %s", utils.Format4Output(param, false))
|
||||||
resp, err := api.LaKaLaApi.RefundOrder(param)
|
resp, err := api.LaKaLaApi.RefundOrder(param)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -125,6 +127,7 @@ func RefundOrderByLaKaLa(ctx *jxcontext.Context, orderPay *model.OrderPay, afsOr
|
|||||||
OriginLogNo: "",
|
OriginLogNo: "",
|
||||||
LocationInfo: lakala.LocationInfoObj{RequestIp: ctx.GetRealRemoteIP()},
|
LocationInfo: lakala.LocationInfoObj{RequestIp: ctx.GetRealRemoteIP()},
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("-----param-AggregateRefund := %s", utils.Format4Output(param, false))
|
||||||
resp, err := api.LaKaLaApi.AggregateRefund(param)
|
resp, err := api.LaKaLaApi.AggregateRefund(param)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package jx
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -51,6 +52,7 @@ func (c *PurchaseHandler) AgreeOrRefuseRefund(ctx *jxcontext.Context, order *mod
|
|||||||
_, err = localjx.RefundOrderByKS(ctx, orderPays[0], order.VendorOrderID, int(order.SkuUserMoney), reason)
|
_, err = localjx.RefundOrderByKS(ctx, orderPays[0], order.VendorOrderID, int(order.SkuUserMoney), reason)
|
||||||
}
|
}
|
||||||
if orderPays[0].PayType == model.PayTypeLaKaLa {
|
if orderPays[0].PayType == model.PayTypeLaKaLa {
|
||||||
|
globals.SugarLogger.Debugf("-----order- := %s", utils.Format4Output(order, false))
|
||||||
_, err = localjx.RefundOrderByLaKaLa(ctx, orderPays[0], order, order.VendorOrderID, int(order.SkuUserMoney), reason)
|
_, err = localjx.RefundOrderByLaKaLa(ctx, orderPays[0], order, order.VendorOrderID, int(order.SkuUserMoney), reason)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user