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,