fix 修复 oss服务无法连接 导致业务异常问题 查询不应该影响业务
This commit is contained in:
parent
9c7274b776
commit
f9ba1df798
@ -64,7 +64,12 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
|
||||
for (Long id : ossIds) {
|
||||
SysOssVo vo = SpringUtils.getAopProxy(this).getById(id);
|
||||
if (ObjectUtil.isNotNull(vo)) {
|
||||
list.add(this.matchingUrl(vo));
|
||||
try {
|
||||
list.add(this.matchingUrl(vo));
|
||||
} catch (Exception ignored) {
|
||||
// 如果oss异常无法连接则将数据直接返回
|
||||
list.add(vo);
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user