浏览代码

1.7.5认证通版本功能优化

JiangChongBo 2 年之前
父节点
当前提交
8e2f0adab2

+ 4 - 4
src/main/java/com/caimei/controller/admin/auth/AuthApi.java

@@ -791,16 +791,16 @@ public class AuthApi {
 
     /**
      * 删除视频
-     * @param videoID
+     * @param videoId
      * @return
      */
      @GetMapping("/del/video")
-    public ResponseJson delVideo(Integer videoID){
+    public ResponseJson delVideo(Integer videoId){
         //删除阿里云存储视频
-         String ossName = authService.getOssNameAuthId(videoID);
+         String ossName = authService.getOssNameAuthId(videoId);
          OSSUtils.deleteSingleFile(ossName);
          //删除视频信息
-         authService.deleteVideoByAuthId(videoID);
+         authService.deleteVideoByAuthId(videoId);
          return ResponseJson.success();
     }
 

+ 2 - 2
src/main/java/com/caimei/service/auth/impl/AuthServiceImpl.java

@@ -1493,9 +1493,9 @@ public class AuthServiceImpl implements AuthService {
                     //普通文件直接下载到临时文件夹uuid下
                     String fileName = "";
                     if ("dev".equals(active)) {
-                        fileName = zipPath + "\\"+challengeRoundVo.getId() ;
+                        fileName = zipPath + "\\"+challengeRoundVo.getTitle() ;
                     } else {
-                        fileName = zipPath + "/"+challengeRoundVo.getId() ;
+                        fileName = zipPath + "/"+challengeRoundVo.getTitle() ;
                     }
                     OSSUtils.downFileByFilePath("authFile/", challengeRoundVo.getOssName(), fileName);
 //                else {