mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-22 03:42:42 +08:00
优化Minio上传的url生成
This commit is contained in:
parent
dfc81c8a8e
commit
c157d6bfea
@ -52,7 +52,11 @@ public class MinioServiceImpl implements MinioService {
|
||||
|
||||
@Override
|
||||
public String url(String path) {
|
||||
return c.getDomain() + c.getBucket() + "/" + path;
|
||||
return c.getDomain()
|
||||
+ (c.getDomain().endsWith("/") ? "" : "/")
|
||||
+ c.getBucket()
|
||||
+ "/"
|
||||
+ path;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user