deason преди 1 година
родител
ревизия
bcec3879c8
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      examcloud-support/src/main/java/cn/com/qmth/examcloud/support/fss/FssHelper.java

+ 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) {
         if (StringUtils.isEmpty(filePath)) {
-            throw new RuntimeException("文件路径不能为空!");
+            return "";
         }
+
         if (filePath.startsWith("http") || filePath.startsWith("https")) {
             return filePath;
         }