饿鲜达商品新建分类处理
This commit is contained in:
@@ -63,10 +63,11 @@ type StoreSkuSyncInfo struct {
|
||||
BindDeletedAt time.Time `orm:"type(datetime)" json:"bindDeletedAt"`
|
||||
|
||||
model.Sku
|
||||
ExdSkuID string `orm:"column(exd_sku_id)"`
|
||||
ExdSkuName string
|
||||
ExdUpc int
|
||||
StoreName string
|
||||
ExdSkuID string `orm:"column(exd_sku_id)"`
|
||||
ExdSkuName string
|
||||
ExdUpc int
|
||||
ExdCategoryThirdID int `orm:"column(exd_category_third_id)"`
|
||||
StoreName string
|
||||
|
||||
// sku_name
|
||||
Prefix string
|
||||
|
||||
@@ -300,16 +300,18 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
||||
"left_num": model.MaxStoreSkuStockQty,
|
||||
// "category_id": utils.Str2Int64(storeSku.VendorCatID),
|
||||
"predict_cat": 0, // 不使用推荐类目
|
||||
"cat3_id": getEbaiCat(storeSku.VendorVendorCatID),
|
||||
"weight": storeSku.Weight,
|
||||
"photos": photos,
|
||||
// "cat3_id": getEbaiCat(storeSku.VendorVendorCatID),
|
||||
"weight": storeSku.Weight,
|
||||
"photos": photos,
|
||||
}
|
||||
if !isExd {
|
||||
params["category_id"] = utils.Str2Int64(storeSku.VendorCatID)
|
||||
params["name"] = utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount)
|
||||
params["cat3_id"] = getEbaiCat(storeSku.VendorVendorCatID)
|
||||
} else {
|
||||
params["upc"] = storeSku.ExdUpc
|
||||
params["name"] = storeSku.ExdSkuName
|
||||
params["cat3_id"] = storeSku.ExdCategoryThirdID
|
||||
}
|
||||
if storeSku.DescImg != "" {
|
||||
params["rtf"] = storeSku.DescImg
|
||||
|
||||
Reference in New Issue
Block a user