This commit is contained in:
linfeng 2023-10-24 15:54:14 +08:00
commit f97ce5dbac
5 changed files with 31 additions and 2 deletions

View File

@ -153,7 +153,27 @@ https://net.linfeng.tech/version/version.html
**当前版本V1.10.0** **当前版本V1.11.0**
###### **V1.11.0发布**
<u>2023.10.23</u>
【新增】1.新增短视频滑动浏览模块
【新增】2.新增短视频播放源加密保护
【新增】3.新增后台发视频及视频链接上传
【新增】4.集成富文本编辑新增后台发布长文
【优化】5.点赞评论、粉丝关注等模块深度集成Redis实现高效缓存提升接口性能
【优化】6.优化搜索模块限制搜索频率
【优化】7.后台前端vue3重构相关模块优化
【优化】8.其他细节优化
###### **V1.10.0发布** ###### **V1.10.0发布**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 KiB

After

Width:  |  Height:  |  Size: 685 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 KiB

After

Width:  |  Height:  |  Size: 408 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 KiB

After

Width:  |  Height:  |  Size: 494 KiB

View File

@ -41,8 +41,11 @@ public class AppOssController {
@Value("${oss.max-size}") @Value("${oss.max-size}")
private Long maxSize; private Long maxSize;
@Autowired
private SysOssService sysOssService;
@ApiOperation("上传文件")
@ApiOperation("APP端文件上传")
@PostMapping("/upload") @PostMapping("/upload")
public R upload(@RequestParam("Image") MultipartFile file) throws Exception { public R upload(@RequestParam("Image") MultipartFile file) throws Exception {
if (file.isEmpty()) { if (file.isEmpty()) {
@ -53,6 +56,12 @@ public class AppOssController {
String suffix = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); String suffix = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
String url = OSSFactory.build().uploadSuffix(file.getBytes(), suffix); 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); return R.ok().put("result", url);
} }