1
This commit is contained in:
@@ -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) {
|
func (p *PurchaseHandler) partRefund2OrderDetailSkuList(orderID string, orderDetail2 interface{}) (skuList []*model.OrderSku) {
|
||||||
refundDetail := orderDetail2.([]interface{})
|
refundDetail := orderDetail2.([]interface{})
|
||||||
refundSkuList := refundDetail[len(refundDetail)-1].(map[string]interface{})["sub_reverse_order_list"].([]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 {
|
for _, product2 := range refundSkuList {
|
||||||
product := product2.(map[string]interface{})
|
product := product2.(map[string]interface{})
|
||||||
|
if orderID == "4062150144186637882" {
|
||||||
|
globals.SugarLogger.Debugf("=====product %s", utils.Format4Output(product, false))
|
||||||
|
}
|
||||||
if product["virtual_type"] == ebaiapi.OrderVirtualType {
|
if product["virtual_type"] == ebaiapi.OrderVirtualType {
|
||||||
skuName := product["sku_name"].(string)
|
skuName := product["sku_name"].(string)
|
||||||
_, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(skuName)
|
_, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(skuName)
|
||||||
@@ -206,6 +213,9 @@ func (p *PurchaseHandler) partRefund2OrderDetailSkuList(orderID string, orderDet
|
|||||||
skuList = append(skuList, sku)
|
skuList = append(skuList, sku)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if orderID == "4062150144186637882" {
|
||||||
|
globals.SugarLogger.Debugf("=====skuList %s", utils.Format4Output(skuList, false))
|
||||||
|
}
|
||||||
return skuList
|
return skuList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user