This commit is contained in:
邹宗楠
2022-10-09 22:01:35 +08:00
parent 56f82c548a
commit 5ee341213b

View File

@@ -344,6 +344,13 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
param.ProductFormatNew = productFormatNew
globals.SugarLogger.Debug("创建=============param", utils.Format4Output(param, false))
// 获取品牌
brandID, err := api.GetSkuBrand(param.CategoryLeafId)
if err != nil {
return nil, err
}
param.StandardBrandId = brandID
tiktokResult, err := api.CreateStoreCommodity(param) // 创建主商品
if err != nil {
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)