Forráskód Böngészése

修改老师端fileUtils部分路径逻辑

Pq 3 éve
szülő
commit
840fbdf10c

+ 2 - 1
teacher/src/main/java/com/cooleshow/teacher/widgets/FileUtils.java

@@ -107,7 +107,7 @@ public class FileUtils {
     public static String getPublicDirectory(String path) {
         String fileDir = null;
         try {
-            File file = new File(Environment.getExternalStorageDirectory() + File.separator + filesDirectory);
+            File file = new File(filesDirectory);
             if (!file.exists()) {
                 file.mkdirs();
             }
@@ -121,6 +121,7 @@ public class FileUtils {
             }
             return fileDir;
         } catch (Exception e) {
+            e.printStackTrace();
             return "";
         }
     }