商品分类

This commit is contained in:
苏尹岚
2020-05-22 14:41:57 +08:00
parent 074f1f25d4
commit 50572269d4

View File

@@ -1,6 +1,7 @@
package jdshop package jdshop
import ( import (
"fmt"
"regexp" "regexp"
"strings" "strings"
@@ -371,6 +372,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
vendorCatID int vendorCatID int
) )
if storeSku.VendorCatID == "" { if storeSku.VendorCatID == "" {
fmt.Println("testCat", storeSku.VendorCatID)
resultCat, _ := api.JdShopAPI.FindShopCategories() resultCat, _ := api.JdShopAPI.FindShopCategories()
for _, v := range resultCat { for _, v := range resultCat {
if v.Name == storeSku.CategoryName { if v.Name == storeSku.CategoryName {