dsx 2 лет назад
Родитель
Сommit
61433dbfcf

+ 27 - 29
src/main/java/com/fdkankan/scene/controller/TestController.java

@@ -8,8 +8,6 @@ import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.io.IOException;
-
 /**
  * <p>
  * TODO
@@ -32,33 +30,33 @@ public class TestController {
         return ResultData.ok(fYunFileService.fileExist("scene_result_data/KK-t-JCaoqtvy7AO/caches/images"));
     }
 
-    @GetMapping("/gd")
-    public ResultData gd(String path){
-        fYunFileService.copyFileBetweenBucket("4dkankan", path, "4dkk-bak", path);
-        fYunFileService.deleteFolder("4dkankan", path);
-        return ResultData.ok();
-    }
-
-    @GetMapping("/jd")
-    public ResultData jd(String path){
-        fYunFileService.restoreFolder("4dkk-bak", path, 1);
-//        fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
-        return ResultData.ok();
-    }
-
-    @GetMapping("/delete")
-    public ResultData delete(String path) throws IOException {
-        fYunFileService.deleteFile("4dkk-bak", path);
-//        fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
-        return ResultData.ok();
-    }
-
-    @GetMapping("/copy")
-    public ResultData copy(String path) {
-        fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkankan", path);
-        fYunFileService.deleteFolder("4dkk-bak", path);
-        return ResultData.ok();
-    }
+//    @GetMapping("/gd")
+//    public ResultData gd(String path){
+//        fYunFileService.copyFileBetweenBucket("4dkankan", path, "4dkk-bak", path);
+//        fYunFileService.deleteFolder("4dkankan", path);
+//        return ResultData.ok();
+//    }
+//
+//    @GetMapping("/jd")
+//    public ResultData jd(String path){
+//        fYunFileService.restoreFolder("4dkk-bak", path, 1);
+////        fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
+//        return ResultData.ok();
+//    }
+//
+//    @GetMapping("/delete")
+//    public ResultData delete(String path) throws IOException {
+//        fYunFileService.deleteFile("4dkk-bak", path);
+////        fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
+//        return ResultData.ok();
+//    }
+//
+//    @GetMapping("/copy")
+//    public ResultData copy(String path) {
+//        fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkankan", path);
+//        fYunFileService.deleteFolder("4dkk-bak", path);
+//        return ResultData.ok();
+//    }
 
 
 }

+ 2 - 2
src/main/resources/bootstrap-test.yml

@@ -33,8 +33,8 @@ spring:
             group: DEFAULT_GROUP
             refresh: true
       discovery:
-#        namespace: ${spring.cloud.nacos.namespace}
-        namespace: public
+        namespace: ${spring.cloud.nacos.namespace}
+#        namespace: public