diff --git a/business/partner/purchase/tiktok_store/store_sku2_utils.go b/business/partner/purchase/tiktok_store/store_sku2_utils.go index 2d493ef17..f6b714c21 100644 --- a/business/partner/purchase/tiktok_store/store_sku2_utils.go +++ b/business/partner/purchase/tiktok_store/store_sku2_utils.go @@ -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))