Skip to content

Commit

Permalink
云存储上传文件,不自定义域名出问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Nov 6, 2021
1 parent f210df8 commit 3f4b40e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static String upload(MultipartFile file, String fileDir,String customBuck
*/
public static String getOriginalUrl(String url) {
String originalDomain = "https://" + bucketName + "." + endPoint;
if(url.indexOf(staticDomain)!=-1){
if(oConvertUtils.isNotEmpty(staticDomain) && url.indexOf(staticDomain)!=-1){
url = url.replace(staticDomain,originalDomain);
}
return url;
Expand Down

0 comments on commit 3f4b40e

Please sign in to comment.