This commit is contained in:
邹宗楠
2023-10-10 10:42:46 +08:00
parent c6aab4e280
commit 847a1d64f4

View File

@@ -316,15 +316,15 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
param.WeightUnit = tiktokShop.WeightUint_G param.WeightUnit = tiktokShop.WeightUint_G
// 部分商品没有所属的分类,直接跳过! // 部分商品没有所属的分类,直接跳过!
//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, err = api.GetRecommendCategory(strings.Split(img, "|")) param.CategoryLeafId, err = api.GetRecommendCategory(strings.Split(img, "|"))
// if param.CategoryLeafId == 0 || err != nil { if param.CategoryLeafId == 0 || err != nil {
// failedList = putils.GetErrMsg2FailedSingleList(storeSku, errors.New("当前商品本地未设置抖音分类/抖音推荐分类查询错误:"+err.Error()), storeID, model.VendorChineseNames[model.VendorIDDD], syncType) failedList = putils.GetErrMsg2FailedSingleList(storeSku, errors.New("当前商品本地未设置抖音分类/抖音推荐分类查询错误:"+err.Error()), storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
// continue continue
// } }
//} }
// 获取主商品id // 获取主商品id
var mainIdInt int64 var mainIdInt int64