This commit is contained in:
苏尹岚
2021-01-13 09:32:00 +08:00
parent ebeb53a92b
commit 1e30bd93f7

View File

@@ -37,6 +37,16 @@ var (
201220334: 1,
}
ebaiExSkuCatMap3 = map[int]int{
35062: 1,
34759: 1,
6042855: 1,
6041992: 1,
27259: 1,
6046862: 1,
6046864: 1,
}
ebaiExSkuCatMap2 = map[int]int{
6046399: 1,
6046283: 1,
@@ -436,6 +446,13 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
categoryID = s.EbaiID
}
}
if ebaiExSkuCatMap3[storeSku.SkuID] != 0 {
store, _ := dao.GetStoreDetail(dao.GetDB(), storeSku.StoreID, model.VendorIDEBAI, "")
if store.CityCode == 510100 {
s, _ := dao.GetStoreSkuCategoryMap(dao.GetDB(), 175, storeSku.StoreID)
categoryID = s.EbaiID
}
}
params["category_id"] = categoryID
params["name"] = utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount)
params["cat3_id"] = getEbaiCat(storeSku.VendorVendorCatID)