aa
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package ebai
|
package ebai
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -420,31 +419,22 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
|||||||
"preparation_time": storeSku.PreparationTime,
|
"preparation_time": storeSku.PreparationTime,
|
||||||
}
|
}
|
||||||
if !isExd {
|
if !isExd {
|
||||||
fmt.Println("test1", storeSku.SkuID)
|
var categoryID = utils.Str2Int64(storeSku.VendorCatID)
|
||||||
if ebaiExSkuCatMap[storeSku.SkuID] != 0 {
|
if ebaiExSkuCatMap[storeSku.SkuID] != 0 {
|
||||||
fmt.Println("test2", storeSku.StoreID)
|
|
||||||
store, _ := dao.GetStoreDetail(dao.GetDB(), storeSku.StoreID, model.VendorIDEBAI, "")
|
store, _ := dao.GetStoreDetail(dao.GetDB(), storeSku.StoreID, model.VendorIDEBAI, "")
|
||||||
if store.CityCode == 510100 {
|
if store.CityCode == 510100 {
|
||||||
s, _ := dao.GetStoreSkuCategoryMap(dao.GetDB(), 439, storeSku.StoreID)
|
s, _ := dao.GetStoreSkuCategoryMap(dao.GetDB(), 439, storeSku.StoreID)
|
||||||
params["category_id"] = s.EbaiID
|
categoryID = s.EbaiID
|
||||||
fmt.Println("test3", s.EbaiID)
|
|
||||||
} else {
|
|
||||||
params["category_id"] = utils.Str2Int64(storeSku.VendorCatID)
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
params["category_id"] = utils.Str2Int64(storeSku.VendorCatID)
|
|
||||||
}
|
}
|
||||||
if ebaiExSkuCatMap2[storeSku.SkuID] != 0 {
|
if ebaiExSkuCatMap2[storeSku.SkuID] != 0 {
|
||||||
store, _ := dao.GetStoreDetail(dao.GetDB(), storeSku.StoreID, model.VendorIDEBAI, "")
|
store, _ := dao.GetStoreDetail(dao.GetDB(), storeSku.StoreID, model.VendorIDEBAI, "")
|
||||||
if store.CityCode == 510100 {
|
if store.CityCode == 510100 {
|
||||||
s, _ := dao.GetStoreSkuCategoryMap(dao.GetDB(), 440, storeSku.StoreID)
|
s, _ := dao.GetStoreSkuCategoryMap(dao.GetDB(), 440, storeSku.StoreID)
|
||||||
params["category_id"] = s.EbaiID
|
categoryID = s.EbaiID
|
||||||
} else {
|
|
||||||
params["category_id"] = utils.Str2Int64(storeSku.VendorCatID)
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
params["category_id"] = utils.Str2Int64(storeSku.VendorCatID)
|
|
||||||
}
|
}
|
||||||
|
params["category_id"] = categoryID
|
||||||
params["name"] = utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount)
|
params["name"] = utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount)
|
||||||
params["cat3_id"] = getEbaiCat(storeSku.VendorVendorCatID)
|
params["cat3_id"] = getEbaiCat(storeSku.VendorVendorCatID)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user