diff --git a/README.md b/README.md index b9f60ba..f5bde66 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,27 @@ https://net.linfeng.tech/version/version.html -**当前版本V1.10.0** +**当前版本V1.11.0** + +###### **V1.11.0发布** + +2023.10.23 + +【新增】1.新增短视频滑动浏览模块 + +【新增】2.新增短视频播放源加密保护 + +【新增】3.新增后台发视频及视频链接上传 + +【新增】4.集成富文本编辑新增后台发布长文 + +【优化】5.点赞评论、粉丝关注等模块深度集成Redis实现高效缓存,提升接口性能 + +【优化】6.优化搜索模块限制搜索频率 + +【优化】7.后台前端vue3重构相关模块优化 + +【优化】8.其他细节优化 ###### **V1.10.0发布** diff --git a/images/showPic11.png b/images/showPic11.png index 33923ea..703bf82 100644 Binary files a/images/showPic11.png and b/images/showPic11.png differ diff --git a/images/showPic14.png b/images/showPic14.png index 5fd04a9..447bf9b 100644 Binary files a/images/showPic14.png and b/images/showPic14.png differ diff --git a/images/showPic15.png b/images/showPic15.png index 38a9ca2..6a38972 100644 Binary files a/images/showPic15.png and b/images/showPic15.png differ diff --git a/src/main/java/io/linfeng/modules/app/controller/AppOssController.java b/src/main/java/io/linfeng/modules/app/controller/AppOssController.java index c5c077c..9c25e1d 100644 --- a/src/main/java/io/linfeng/modules/app/controller/AppOssController.java +++ b/src/main/java/io/linfeng/modules/app/controller/AppOssController.java @@ -41,8 +41,11 @@ public class AppOssController { @Value("${oss.max-size}") private Long maxSize; + @Autowired + private SysOssService sysOssService; - @ApiOperation("上传文件") + + @ApiOperation("APP端文件上传") @PostMapping("/upload") public R upload(@RequestParam("Image") MultipartFile file) throws Exception { if (file.isEmpty()) { @@ -53,6 +56,12 @@ public class AppOssController { String suffix = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); String url = OSSFactory.build().uploadSuffix(file.getBytes(), suffix); + //保存文件信息 + SysOssEntity ossEntity = new SysOssEntity(); + ossEntity.setUrl(url); + ossEntity.setCreateDate(new Date()); + sysOssService.save(ossEntity); + return R.ok().put("result", url); }