Bladeren bron

删除测试代码

xueyiming 3 weken geleden
bovenliggende
commit
7c5791702b

+ 0 - 13
tencent-ad-server/src/main/java/com/tzld/piaoquan/tencentad/controller/FfmpegUtilController.java

@@ -31,17 +31,4 @@ public class FfmpegUtilController {
     public CommonResponse<String> fetchKeyFrames(@RequestBody FetchKeyFramesParam fetchKeyFramesParam) {
         return ffmpegUtilService.fetchKeyFrames(fetchKeyFramesParam);
     }
-
-    @PostMapping("/test")
-    public CommonResponse<String> test(@RequestBody FetchKeyFramesParam fetchKeyFramesParam) {
-        String imageFolder = imagePath + "/" + UUID.randomUUID();
-        File dir = new File(imageFolder);
-        if (!dir.exists()) {
-            boolean mkdir = dir.mkdir();
-        }
-        String imagePath = imageFolder + "/" + "%04d.jpg";
-        FfmpegUtil.getTargetThumbnail("http://rescdn.yishihui.com/long_articles/video/8b4b2e6a-e556-4d06-8b4e-65a25654ebce", imagePath);
-        return CommonResponse.create("ok");
-    }
-
 }