From 7cd219213558ffe035749cb6d0e13ea73882d5d1 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Tue, 22 Aug 2023 10:00:12 +0800 Subject: [PATCH] fix --- server/upload/internal/logic/uploadlogologic.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/upload/internal/logic/uploadlogologic.go b/server/upload/internal/logic/uploadlogologic.go index b2de5a6c..82d0427b 100644 --- a/server/upload/internal/logic/uploadlogologic.go +++ b/server/upload/internal/logic/uploadlogologic.go @@ -130,6 +130,8 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us return resp.SetStatus(basic.CodeFileUploadErr, "upload file failed") } + logx.Infof("上传logo请求算法--开始时间:%v", time.Now()) + var logoWidth int64 var logoHeight int64 // 查看sku是否存在 @@ -171,6 +173,9 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us return resp.SetStatus(basic.CodeFileUploadLogoErr, "service fail 02") } + logx.Infof("上传logo请求算法--结束时间:%v", time.Now()) + logx.Infof("上传logo请求算法--返回结果:%v", string(b)) + if string(b) == "Internal Server Error" { err = errors.New("BLMService fail Internal Server Error") logx.Error(err)