This commit is contained in:
邹宗楠
2022-12-12 10:57:50 +08:00
parent 632c96f059
commit c9be3f4bf0

View File

@@ -265,7 +265,8 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
var tiktokResultProductId int64 = 0
// 获取本地存储映射关系,获取本地主商品id是否存在
localThing, err := dao.GetThingToTiktokMapList(db, model.VendorIDDD, int64(storeSku.SkuID))
if len(localThing) == 0 { // 线上不存在创建
if len(localThing) == 0 {
// 看看本地保存了没,没有的话可能该商品没创建主商品
tiktokResult, err := api.CreateStoreCommodity(param) // 创建主商品
if err != nil {
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)