blue
2 years ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with
6 additions and
3 deletions
-
im-platform/src/main/java/com/bx/implatform/service/thirdparty/FileService.java
-
im-platform/src/main/resources/application.yml
|
|
@ -40,6 +40,8 @@ public class FileService { |
|
|
private String imagePath; |
|
|
private String imagePath; |
|
|
@Value("${minio.filePath}") |
|
|
@Value("${minio.filePath}") |
|
|
private String filePath; |
|
|
private String filePath; |
|
|
|
|
|
@Value("${minio.videoPath}") |
|
|
|
|
|
private String videoPath; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostConstruct |
|
|
@PostConstruct |
|
|
@ -109,13 +111,13 @@ public class FileService { |
|
|
String url = minIoServer + "/" + bucketName; |
|
|
String url = minIoServer + "/" + bucketName; |
|
|
switch (fileTypeEnum) { |
|
|
switch (fileTypeEnum) { |
|
|
case FILE: |
|
|
case FILE: |
|
|
url += "/file/"; |
|
|
url += "/" + filePath + "/"; |
|
|
break; |
|
|
break; |
|
|
case IMAGE: |
|
|
case IMAGE: |
|
|
url += "/image/"; |
|
|
url += "/" + imagePath + "/"; |
|
|
break; |
|
|
break; |
|
|
case VIDEO: |
|
|
case VIDEO: |
|
|
url += "/video/"; |
|
|
url += "/" + videoPath + "/"; |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
break; |
|
|
break; |
|
|
|
|
|
@ -39,6 +39,7 @@ minio: |
|
|
bucketName: box-im |
|
|
bucketName: box-im |
|
|
imagePath: image |
|
|
imagePath: image |
|
|
filePath: file |
|
|
filePath: file |
|
|
|
|
|
videoPath: video |
|
|
|
|
|
|
|
|
webrtc: |
|
|
webrtc: |
|
|
iceServers: |
|
|
iceServers: |
|
|
|