|
@@ -29,8 +29,9 @@ public class FssHelper {
|
|
*/
|
|
*/
|
|
public static String finalFileUrl(String filePath) {
|
|
public static String finalFileUrl(String filePath) {
|
|
if (StringUtils.isEmpty(filePath)) {
|
|
if (StringUtils.isEmpty(filePath)) {
|
|
- throw new RuntimeException("文件路径不能为空!");
|
|
|
|
|
|
+ return "";
|
|
}
|
|
}
|
|
|
|
+
|
|
if (filePath.startsWith("http") || filePath.startsWith("https")) {
|
|
if (filePath.startsWith("http") || filePath.startsWith("https")) {
|
|
return filePath;
|
|
return filePath;
|
|
}
|
|
}
|