This commit is contained in:
laodaming 2023-07-05 16:08:25 +08:00
parent 6337371cd1
commit 78c09f1b40

View File

@ -113,11 +113,11 @@ func (l *SaveDesignLogic) SaveDesign(req *types.SaveDesignReq, userinfo *auth.Us
if postInfo.Cover == "" { if postInfo.Cover == "" {
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.SaveDesignRsp{Sn: postInfo.Sn}) return resp.SetStatusWithMessage(basic.CodeOK, "success", types.SaveDesignRsp{Sn: postInfo.Sn})
} }
//生成各个尺寸缩略图 // TODO 生成各个尺寸缩略图 ????需要整改为基于aws 云存储
if err = l.CreateStepThumbnailImage(l.ctx, postInfo.Cover); err != nil { /*if err = l.CreateStepThumbnailImage(l.ctx, postInfo.Cover); err != nil {
logx.Error(err) logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to create step thumbnail image ") return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to create step thumbnail image ")
} }*/
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.SaveDesignRsp{Sn: postInfo.Sn}) return resp.SetStatusWithMessage(basic.CodeOK, "success", types.SaveDesignRsp{Sn: postInfo.Sn})
} }