deason 1 year ago
parent
commit
bcec3879c8

+ 2 - 1
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/fss/FssHelper.java

@@ -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;
         }
         }