feat: 支持移动端上传本地照片作为自定义头像,并允许公开读取头像
This commit is contained in:
@@ -50,7 +50,7 @@ func (s *Service) Upload(req uploadRequest) (*UploadDTO, error) {
|
||||
return nil, err
|
||||
}
|
||||
fileURL := "/api/files/object?key=" + url.QueryEscape(key)
|
||||
if scene == "home-banner" {
|
||||
if scene == "home-banner" || scene == "avatar" {
|
||||
fileURL = "/api/public/files/object?key=" + url.QueryEscape(key)
|
||||
}
|
||||
return &UploadDTO{
|
||||
|
||||
Reference in New Issue
Block a user