From dd3fcfb23d575762b0261d6a024cb4e0dbcc3f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 10 Oct 2023 15:01:16 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store_sku2_utils.go | 6 ++++-- 1 file changed, 4 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 f96c33879..d3557fe80 100644 --- a/business/partner/purchase/tiktok_store/store_sku2_utils.go +++ b/business/partner/purchase/tiktok_store/store_sku2_utils.go @@ -930,6 +930,8 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg, SkuID: skuId, VendorID: model.VendorIDDD, } + globals.SugarLogger.Debugf("===========imgs := %s", utils.Format4Output(imgs, false)) + globals.SugarLogger.Debugf("===========tiktokImgList := %s", utils.Format4Output(tiktokImgList, false)) for k, v := range tiktokImgList { if strings.Contains(k, "detail_") { detailTiktok = v.ByteUrl @@ -952,7 +954,7 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg, whiteTiktok = tiktokImg[0] localTiktokObj.Img = whiteTiktok } - + globals.SugarLogger.Debugf("===========tiktokImg := %s", utils.Format4Output(tiktokImg, false)) switch len(tiktokImg) { case 1: localTiktokObj.Img2 = tiktokImg[0] @@ -968,8 +970,8 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg, localTiktokObj.Img3 = tiktokImg[1] localTiktokObj.Img4 = tiktokImg[2] localTiktokObj.Img5 = tiktokImg[3] - } + globals.SugarLogger.Debugf("===========localTiktokObj := %s", utils.Format4Output(localTiktokObj, false)) dao.CreateEntity(dao.GetDB(), localTiktokObj) return strings.Join(tiktokImg, "|"), detailTiktok, whiteTiktok, nil }