update 优化 oss桶权限为私密时,列表查看时桶为私密的文件获取临时url(解决桶为private上传时无法预览问题)

This commit is contained in:
chenchen 2022-10-20 16:36:31 +08:00
parent c9c4554406
commit 24030e47a1

View File

@ -98,7 +98,7 @@ public class SysOssServiceImpl implements ISysOssService {
@Override
public void download(Long ossId, HttpServletResponse response) throws IOException {
SysOssVo sysOss = SpringUtils.getAopProxy(this).matchingUrl(this.getById(ossId));
SysOssVo sysOss = this.matchingUrl(SpringUtils.getAopProxy(this).getById(ossId));
if (ObjectUtil.isNull(sysOss)) {
throw new ServiceException("文件数据不存在!");
}