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