From 3af5fc8a74e007813bdefe7d7e5f8d0a02f34d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 27 Jul 2023 14:39:46 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/store_sku2.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index debd525ae..ddc24f9b4 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -439,6 +439,7 @@ func checkNameLength(name string, weight int, uint string) string { } func uploadImg(api *tao_vegetable.API, imgs []string) *string { + globals.SugarLogger.Debugf("imgs==== := %s", utils.Format4Output(imgs, false)) result := make([]string, 0, 0) for _, v := range imgs { if v == "" { @@ -461,6 +462,9 @@ func uploadImg(api *tao_vegetable.API, imgs []string) *string { result = append(result, newImg) } } + defer func() { + globals.SugarLogger.Debugf("result==== := %s", utils.Format4Output(result, false)) + }() // 商品图片最多五张 if len(result) > 5 { return utils.String2Pointer(strings.Join(result[1:], ","))