视频保存
This commit is contained in:
@@ -259,6 +259,9 @@ func (s *FileService) UploadVoice(ctx context.Context, fileHeader *multipart.Fil
|
||||
|
||||
// buildURL 根据 MinIO 配置构建文件访问 URL
|
||||
func (s *FileService) buildURL(objectName string) string {
|
||||
if base := strings.TrimRight(strings.TrimSpace(s.minioCfg.PublicBaseURL), "/"); base != "" {
|
||||
return fmt.Sprintf("%s/%s", base, objectName)
|
||||
}
|
||||
scheme := "http"
|
||||
if s.minioCfg.UseSSL {
|
||||
scheme = "https"
|
||||
|
||||
Reference in New Issue
Block a user