From c004b06602dc4b186817b912aa555849886e267a Mon Sep 17 00:00:00 2001 From: Hiven Date: Wed, 9 Aug 2023 18:05:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8A=E4=BC=A0logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/upload/etc/upload.yaml | 2 +- server/upload/internal/logic/uploadlogologic.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/upload/etc/upload.yaml b/server/upload/etc/upload.yaml index 3c4a9efd..5a8a5cb6 100644 --- a/server/upload/etc/upload.yaml +++ b/server/upload/etc/upload.yaml @@ -15,4 +15,4 @@ AWS: Token: BLMService: ImageProcess: - Url: "http://192.168.1.8:45678/FeatureExtraction" + Url: "http://192.168.1.7:45678/FeatureExtraction" diff --git a/server/upload/internal/logic/uploadlogologic.go b/server/upload/internal/logic/uploadlogologic.go index 28551b04..579ef53c 100644 --- a/server/upload/internal/logic/uploadlogologic.go +++ b/server/upload/internal/logic/uploadlogologic.go @@ -100,6 +100,10 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us } resultStr = string(b) + if resultStr == "Internal Server Error" { + return resp.SetStatus(basic.CodeFileUploadLogoErr, resultStr) + } + var module = "logo" var nowTime = time.Now().Unix() // 新增记录