1
This commit is contained in:
@@ -169,17 +169,18 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
if storeSku.SkuVendorMapCatID != "" {
|
if storeSku.SkuVendorMapCatID != "" {
|
||||||
param.CategoryLeafId = utils.Str2Int64(storeSku.SkuVendorMapCatID)
|
param.CategoryLeafId = utils.Str2Int64(storeSku.SkuVendorMapCatID)
|
||||||
} else if len(param.Pic) != 0 { // 自动推导分类id
|
} else if len(param.Pic) != 0 { // 自动推导分类id
|
||||||
param.CategoryLeafId = api.GetRecommendCategory(strings.Split(img, "|"))
|
param.CategoryLeafId, err = api.GetRecommendCategory(strings.Split(img, "|"))
|
||||||
|
if param.CategoryLeafId == 0 || err != nil {
|
||||||
|
failedList = putils.GetErrMsg2FailedSingleList(storeSku, errors.New("当前商品本地未设置抖音分类/抖音推荐分类查询错误:"+err.Error()), storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 这个情况是原有商品不存在和推荐查询不到类目id是,使用京西类目和抖音类目的绑定关系
|
// 这个情况是原有商品不存在和推荐查询不到类目id是,使用京西类目和抖音类目的绑定关系
|
||||||
// 但是不太实用,导致商品类目错误被暂停营业等
|
// 但是不太实用,导致商品类目错误被暂停营业等
|
||||||
//if storeSku.VendorVendorCatID != 0 && param.CategoryLeafId == 0 {
|
//if storeSku.VendorVendorCatID != 0 && param.CategoryLeafId == 0 {
|
||||||
// param.CategoryLeafId = storeSku.VendorVendorCatID
|
// param.CategoryLeafId = storeSku.VendorVendorCatID
|
||||||
//}
|
//}
|
||||||
if param.CategoryLeafId == 0 {
|
|
||||||
failedList = putils.GetErrMsg2FailedSingleList(storeSku, errors.New("当前商品本地未设置抖音分类/抖音推荐分类查询错误"), storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
// 是否支持七天无理由
|
// 是否支持七天无理由
|
||||||
if api.GetProductUpdateRule(param.CategoryLeafId) {
|
if api.GetProductUpdateRule(param.CategoryLeafId) {
|
||||||
param.Supply7dayReturn = 1
|
param.Supply7dayReturn = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user