1
This commit is contained in:
@@ -158,6 +158,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
continue
|
||||
}
|
||||
tiktokResult, errCreate := api.CreateStoreCommodity(param) // 创建主商品,同步主商品
|
||||
globals.SugarLogger.Debugf("========tiktokResult ;= %s", utils.Format4Output(tiktokResult, false))
|
||||
if tiktokResult == nil {
|
||||
tiktokResult = &product_addV2_response.ProductAddV2Data{}
|
||||
}
|
||||
if errCreate != nil {
|
||||
if strings.Contains(errCreate.Error(), "outProductId或者outerProductId已经存在") { // 主品以创建但是未返回出来
|
||||
mainProductDetail, _ := api.GetSkuDetail("", utils.Int2Str(storeSku.SkuID))
|
||||
|
||||
Reference in New Issue
Block a user