Selaa lähdekoodia

上传文件接口增加耗时打印

dengsixing 2 vuotta sitten
vanhempi
commit
41c14f43c6

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

@@ -28,8 +28,8 @@ public class TestController {
     private FYunFileServiceInterface fYunFileService;
 
     @GetMapping("/test")
-    public ResultData test(){
-        fYunFileService.uploadFile("4dkankan","C:\\Users\\4dage\\Downloads\\4DKanKan_share.png", "test_1/test.png");
+    public ResultData test(String path){
+        fYunFileService.uploadFile("4dkankan", path, "test_1/test.png");
         return ResultData.ok();
     }