From e65c4f40914f5f43c2b7ca15fc6e3f283ae3ccb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 7 May 2025 11:35:03 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store_sku2_utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/partner/purchase/tiktok_store/store_sku2_utils.go b/business/partner/purchase/tiktok_store/store_sku2_utils.go index 04eaff40d..59a199449 100644 --- a/business/partner/purchase/tiktok_store/store_sku2_utils.go +++ b/business/partner/purchase/tiktok_store/store_sku2_utils.go @@ -955,6 +955,7 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg, detailTiktok := "" whiteTiktok := "" tiktokImgLocal, err := dao.GetVendorImg(skuId, model.VendorIDDD) + globals.SugarLogger.Debugf("----------tiktokImgLocal := %s", utils.Format4Output(tiktokImgLocal, false)) if err == nil && tiktokImgLocal != nil && tiktokImgLocal.Img != "" { localImgs := make([]string, 0, 0) localImgs = append(localImgs, tiktokImgLocal.Img) @@ -988,6 +989,7 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg, }) } } + globals.SugarLogger.Debugf("----------imgs := %s", utils.Format4Output(imgs, false)) if detailImg != "" { imgs = append(imgs, tiktokShop.Imgs{ Name: "detail_" + storeId + "_" + detailImg[21:54], @@ -1001,6 +1003,8 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg, }) } tiktokImgList, err := api.BatchUploadImages(imgs) + globals.SugarLogger.Debugf("----------tiktokImgList := %s", utils.Format4Output(tiktokImgList, false)) + globals.SugarLogger.Debugf("----------err := %s", utils.Format4Output(err, false)) if err != nil { return "", "", "", err }