This commit is contained in:
邹宗楠
2025-08-06 15:53:50 +08:00
parent 9877b78586
commit 22813b9b29
2 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/api"
"time"
)
@@ -93,6 +94,7 @@ func RefundOrderByLaKaLa(ctx *jxcontext.Context, orderPay *model.OrderPay, afsOr
RefundType: "",
}
globals.SugarLogger.Debugf("-----param-RefundOrder := %s", utils.Format4Output(param, false))
resp, err := api.LaKaLaApi.RefundOrder(param)
if err != nil {
return nil, err
@@ -125,6 +127,7 @@ func RefundOrderByLaKaLa(ctx *jxcontext.Context, orderPay *model.OrderPay, afsOr
OriginLogNo: "",
LocationInfo: lakala.LocationInfoObj{RequestIp: ctx.GetRealRemoteIP()},
}
globals.SugarLogger.Debugf("-----param-AggregateRefund := %s", utils.Format4Output(param, false))
resp, err := api.LaKaLaApi.AggregateRefund(param)
if err != nil {
return nil, err

View File

@@ -2,6 +2,7 @@ package jx
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"strings"
"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)
}
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)
}
if err != nil {