Kaynağa Gözat

组件样式

xujunwei 8 ay önce
ebeveyn
işleme
f33f818d88

+ 3 - 3
framework-common/src/main/java/com/mrxu/framework/common/util/QiniuService.java

@@ -137,7 +137,7 @@ public class QiniuService {
         //File file = new File("d://222.jpg");
         //getFiles("D:\\code\\mrxu-res\\src\\main\\webapp\\res\\haotianlai\\res");
         //System.out.println(upload(file,null));
-        getFile(new File("D:\\test\\mrxu-res\\src\\main\\webapp\\res\\easyweb\\assets\\module\\iconPicker.js"));
+        getFiles("/Users/jsonxu/code/mrxu/mrxu-manager/src/main/resources/static/cms");
         System.out.println("执行完成!");
     }
 
@@ -157,8 +157,8 @@ public class QiniuService {
 
     public static void getFile(File file) {
         String fileName = file.getAbsolutePath();
-        int index = fileName.indexOf("\\webapp\\res\\");
-        fileName = "V1/"+fileName.substring(index+8, fileName.length()).replaceAll("\\\\", "/");
+        int index = fileName.indexOf("/resources/static");
+        fileName = "V2/"+fileName.substring(index+18, fileName.length()).replaceAll("\\\\", "/");
         //TODO delete
         //fileName = fileName.replace("V1/res/panh/", "");
         delete(fileName);