From 2df1e2d8c7210ad1548df1cd54903cab66c86535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 31 Oct 2024 14:51:52 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index 7d7058af1..413905bae 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -209,8 +209,6 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA case 1: // 同步分类 fromCategoryList, err := fromApi.RetailCatList(fromStore.VendorStoreID) - globals.SugarLogger.Debugf("--------------1,err = %v", err) - globals.SugarLogger.Debugf("--------------1,fromCategoryList = %s", utils.Format4Output(fromCategoryList, false)) if len(fromCategoryList) == model.NO { return nil, err } @@ -227,7 +225,7 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA if categoryErr != nil { globals.SugarLogger.Debugf("err := RetailCatUpdate : %v", categoryErr) } - if v.Children != nil && len(v.Children) != 0 { + if v.Children != nil { for _, c := range v.Children { if err3 := toApi.RetailCatUpdate(toStore.VendorStoreID, v.Name, &mtwmapi.Param4UpdateCat{ CategoryNameOrigin: v.Name,