1
This commit is contained in:
@@ -3,7 +3,6 @@ package mtwm
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/globals/api"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -309,9 +308,11 @@ func (c *PurchaseHandler) PartRefundOrder(ctx *jxcontext.Context, order *model.G
|
|||||||
func (c *PurchaseHandler) GetOrderAfsInfo(ctx *jxcontext.Context, vendorOrderID, afsOrderID string) (orderAfsInfo *partner.OrderAfsInfo, err error) {
|
func (c *PurchaseHandler) GetOrderAfsInfo(ctx *jxcontext.Context, vendorOrderID, afsOrderID string) (orderAfsInfo *partner.OrderAfsInfo, err error) {
|
||||||
orderAfsInfo = &partner.OrderAfsInfo{}
|
orderAfsInfo = &partner.OrderAfsInfo{}
|
||||||
var afsTotalShopMoney int64
|
var afsTotalShopMoney int64
|
||||||
list, err := api.MtwmAPI.GetOrderRefundDetail(utils.Str2Int64(vendorOrderID), 0)
|
order, _ := partner.CurOrderManager.LoadOrder(vendorOrderID, model.VendorIDMTWM)
|
||||||
|
|
||||||
|
list, err := getAPI(order.VendorOrgCode, jxutils.GetShowStoreIDFromOrder(order), order.VendorStoreID).GetOrderRefundDetail(utils.Str2Int64(vendorOrderID), 0)
|
||||||
globals.SugarLogger.Debugf("=================list-v := %s", utils.Format4Output(list, false))
|
globals.SugarLogger.Debugf("=================list-v := %s", utils.Format4Output(list, false))
|
||||||
globals.SugarLogger.Debugf("=================list-v err:= %v", err)
|
globals.SugarLogger.Debugf("=================list-v err:= %v", utils.Format4Output(list, false))
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
for _, v := range list {
|
for _, v := range list {
|
||||||
@@ -320,7 +321,7 @@ func (c *PurchaseHandler) GetOrderAfsInfo(ctx *jxcontext.Context, vendorOrderID,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if order, err := partner.CurOrderManager.LoadOrder(vendorOrderID, model.VendorIDMTWM); err == nil {
|
if err == nil {
|
||||||
orderAfsInfo.AfsTotalShopMoney = order.TotalShopMoney + afsTotalShopMoney
|
orderAfsInfo.AfsTotalShopMoney = order.TotalShopMoney + afsTotalShopMoney
|
||||||
}
|
}
|
||||||
return orderAfsInfo, err
|
return orderAfsInfo, err
|
||||||
|
|||||||
Reference in New Issue
Block a user