1
This commit is contained in:
@@ -42,7 +42,13 @@ func TestOOO(t *testing.T) {
|
|||||||
"upc": "upc-25381",
|
"upc": "upc-25381",
|
||||||
"virtual_type": "0",
|
"virtual_type": "0",
|
||||||
}
|
}
|
||||||
skuList := make([]*model.OrderSku, 0, 0)
|
skuList := aa(product)
|
||||||
|
globals.SugarLogger.Debugf("=====skulist := %s", utils.Format4Output(skuList, false))
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func aa(product map[string]interface{}) (skuList []*model.OrderSku) {
|
||||||
|
skuList = make([]*model.OrderSku, 0, 0)
|
||||||
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)
|
||||||
@@ -64,7 +70,5 @@ func TestOOO(t *testing.T) {
|
|||||||
}
|
}
|
||||||
skuList = append(skuList, sku)
|
skuList = append(skuList, sku)
|
||||||
}
|
}
|
||||||
|
return skuList
|
||||||
globals.SugarLogger.Debugf("=====skulist := %s", utils.Format4Output(skuList, false))
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ func (p *PurchaseHandler) partRefund2OrderDetailSkuList(orderID string, orderDet
|
|||||||
if orderID == "4062150144186637882" {
|
if orderID == "4062150144186637882" {
|
||||||
globals.SugarLogger.Debugf("=====refundSkuList-----list %s", utils.Format4Output(refundSkuList, false))
|
globals.SugarLogger.Debugf("=====refundSkuList-----list %s", utils.Format4Output(refundSkuList, false))
|
||||||
}
|
}
|
||||||
|
skuList = make([]*model.OrderSku, 0, 0)
|
||||||
for _, product2 := range refundSkuList {
|
for _, product2 := range refundSkuList {
|
||||||
product := product2.(map[string]interface{})
|
product := product2.(map[string]interface{})
|
||||||
if orderID == "4062150144186637882" {
|
if orderID == "4062150144186637882" {
|
||||||
|
|||||||
Reference in New Issue
Block a user