This commit is contained in:
邹宗楠
2024-03-27 13:47:35 +08:00
parent f57644a7dd
commit f44bbc329e
2 changed files with 9 additions and 4 deletions

View File

@@ -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))
} }

View File

@@ -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" {