Преглед изворни кода

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

dengsixing пре 2 година
родитељ
комит
41c14f43c6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main/java/com/fdkankan/scene/controller/TestController.java

+ 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();
     }