From 78c09f1b40d510b494d5fa28f7af755debb5797a Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 5 Jul 2023 16:08:25 +0800 Subject: [PATCH] fix --- server/product/internal/logic/savedesignlogic.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/product/internal/logic/savedesignlogic.go b/server/product/internal/logic/savedesignlogic.go index 38f2f8d1..bd24b778 100644 --- a/server/product/internal/logic/savedesignlogic.go +++ b/server/product/internal/logic/savedesignlogic.go @@ -113,11 +113,11 @@ func (l *SaveDesignLogic) SaveDesign(req *types.SaveDesignReq, userinfo *auth.Us if postInfo.Cover == "" { return resp.SetStatusWithMessage(basic.CodeOK, "success", types.SaveDesignRsp{Sn: postInfo.Sn}) } - //生成各个尺寸缩略图 - if err = l.CreateStepThumbnailImage(l.ctx, postInfo.Cover); err != nil { + // TODO 生成各个尺寸缩略图 ????需要整改为基于aws 云存储 + /*if err = l.CreateStepThumbnailImage(l.ctx, postInfo.Cover); err != nil { logx.Error(err) return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to create step thumbnail image ") - } + }*/ return resp.SetStatusWithMessage(basic.CodeOK, "success", types.SaveDesignRsp{Sn: postInfo.Sn}) }