Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop

This commit is contained in:
laodaming
2023-11-27 11:18:58 +08:00
4 changed files with 29 additions and 23 deletions

View File

@@ -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,
@@ -123,6 +127,8 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
UserId: userId,
GuestId: guestId,
Source: "upload-logo",
ResourceId: resourceId,
Refresh: 1,
})
var logoUrl string