From 8c5f39218eb978cb4ffb422f1556a0b66c01bc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 26 Oct 2023 16:59:51 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store_sku2_utils.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/tiktok_store/store_sku2_utils.go b/business/partner/purchase/tiktok_store/store_sku2_utils.go index b68297e72..21995c7dc 100644 --- a/business/partner/purchase/tiktok_store/store_sku2_utils.go +++ b/business/partner/purchase/tiktok_store/store_sku2_utils.go @@ -152,13 +152,14 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI if len(localThing) == 0 { param, failedList2 := makeMainProductSku(db, api, storeSku, storeDetail, storeID, vendorStoreID, syncType) - globals.SugarLogger.Debugf("====================param := %s", utils.Format4Output(param, false)) if len(failedList2) != 0 { storeSku.SkuSyncStatus = model.SyncFlagNewMask // 只创建主品,子品都没做 failedList = append(failedList, failedList2...) continue } - tiktokResult, err := api.CreateStoreCommodity(param) // 创建主商品,同步主商品 + tiktokResult, err := api.CreateStoreCommodity(param) // 创建主商品,同步主商品 + globals.SugarLogger.Debugf("========tiktokResult := %s", utils.Format4Output(tiktokResult, false)) + globals.SugarLogger.Debugf("========err := %s", err) if err != nil && strings.Contains(err.Error(), "outProductId或者outerProductId已经存在") { // 主品以创建但是未返回出来 mainProductDetail, _ := api.GetSkuDetail("", utils.Int2Str(storeSku.SkuID)) if mainProductDetail != nil || mainProductDetail.ProductId != 0 {