This commit is contained in:
邹宗楠
2024-03-27 11:13:56 +08:00
parent 4aeb22591e
commit 24a9240d7e

View File

@@ -182,8 +182,15 @@ func getZengSkus(orderID string, orderMan map[string]interface{}) (skus []*model
func (p *PurchaseHandler) partRefund2OrderDetailSkuList(orderID string, orderDetail2 interface{}) (skuList []*model.OrderSku) {
refundDetail := orderDetail2.([]interface{})
refundSkuList := refundDetail[len(refundDetail)-1].(map[string]interface{})["sub_reverse_order_list"].([]interface{})
if orderID == "4062150144186637882" {
globals.SugarLogger.Debugf("=====refundDetail %s", utils.Format4Output(refundDetail, false))
globals.SugarLogger.Debugf("=====refundSkuList %s", utils.Format4Output(refundSkuList, false))
}
for _, product2 := range refundSkuList {
product := product2.(map[string]interface{})
if orderID == "4062150144186637882" {
globals.SugarLogger.Debugf("=====product %s", utils.Format4Output(product, false))
}
if product["virtual_type"] == ebaiapi.OrderVirtualType {
skuName := product["sku_name"].(string)
_, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(skuName)
@@ -206,6 +213,9 @@ func (p *PurchaseHandler) partRefund2OrderDetailSkuList(orderID string, orderDet
skuList = append(skuList, sku)
}
}
if orderID == "4062150144186637882" {
globals.SugarLogger.Debugf("=====skuList %s", utils.Format4Output(skuList, false))
}
return skuList
}