This commit is contained in:
邹宗楠
2024-03-27 13:39:23 +08:00
parent a69ba42b71
commit f57644a7dd

View File

@@ -171,8 +171,14 @@ 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("=====refundSkuList-----list %s", utils.Format4Output(refundSkuList, false))
}
for _, product2 := range refundSkuList {
product := product2.(map[string]interface{})
if orderID == "4062150144186637882" {
globals.SugarLogger.Debugf("=====product-----list %s", utils.Format4Output(product, false))
}
if product["virtual_type"] == ebaiapi.OrderVirtualType {
skuName := product["sku_name"].(string)
_, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(skuName)
@@ -196,7 +202,7 @@ func (p *PurchaseHandler) partRefund2OrderDetailSkuList(orderID string, orderDet
}
}
if orderID == "4062150144186637882" {
globals.SugarLogger.Debugf("=====order----- %s", utils.Format4Output(skuList, false))
globals.SugarLogger.Debugf("=====order-----list %s", utils.Format4Output(skuList, false))
}
return skuList
}