From fde34cd9b1a09b9d76a27b0270f78a96de3c8108 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Fri, 24 Nov 2023 18:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/upload/internal/logic/uploadlogologic.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/upload/internal/logic/uploadlogologic.go b/server/upload/internal/logic/uploadlogologic.go index 54414de9..24c86e95 100644 --- a/server/upload/internal/logic/uploadlogologic.go +++ b/server/upload/internal/logic/uploadlogologic.go @@ -114,7 +114,11 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us MysqlConn: l.svcCtx.MysqlConn, AwsSession: l.svcCtx.AwsSession, } - var resourceId string = hash.JsonHashKey(req.FileKey) + var hashKeyMap = make(map[string]interface{}, 2) + hashKeyMap["fileKey"] = req.FileKey + hashKeyMap["userId"] = userId + var resourceId string = hash.JsonHashKey(hashKeyMap) + uploadRes, err := upload.UploadFileByByte(&file.UploadBaseReq{ FileHash: resourceId, FileByte: ioData,