From eeed46aeb5a0622445a6f9e1232b4738a9628280 Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Mon, 6 Nov 2023 20:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=97=B6?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8E=E7=BC=80=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/health/video/server/service/impl/VideoServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health-video-server/src/main/java/com/health/video/server/service/impl/VideoServiceImpl.java b/health-video-server/src/main/java/com/health/video/server/service/impl/VideoServiceImpl.java index cced880..3db8d8b 100644 --- a/health-video-server/src/main/java/com/health/video/server/service/impl/VideoServiceImpl.java +++ b/health-video-server/src/main/java/com/health/video/server/service/impl/VideoServiceImpl.java @@ -215,7 +215,7 @@ public class VideoServiceImpl implements VideoService { // 获取文件后缀,因此此后端代码可接收一切文件,上传格式前端限定 String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".") + 1).toLowerCase(); - vodConfig.put("filename", result + fileExt); // 此参数不重要,只要能保留文件后缀名如 a.mp4 即可 + vodConfig.put("filename",fileExt); // 此参数不重要,只要能保留文件后缀名如 a.mp4 即可 vodConfig.put("vn", result); // .. . 分组配置、回调参数 JSONObject body = new JSONObject();// 构建body对象 body.put("channel", "VOD_UPLOAD");