mirror of https://gitee.com/stylefeng/roses
【7.1.6】【theme】修正赋值问题
parent
7e7aafa870
commit
e10eec144f
|
@ -176,8 +176,13 @@ public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> i
|
||||||
// 设置唯一id
|
// 设置唯一id
|
||||||
antdvFileInfo.setUid(IdWorker.getIdStr());
|
antdvFileInfo.setUid(IdWorker.getIdStr());
|
||||||
// 设置文件名称
|
// 设置文件名称
|
||||||
SysFileInfoResponse fileInfoWithoutContent = fileInfoApi.getFileInfoWithoutContent(Long.valueOf(value));
|
SysFileInfoResponse fileInfoWithoutContent = null;
|
||||||
|
try {
|
||||||
|
fileInfoWithoutContent = fileInfoApi.getFileInfoWithoutContent(Long.valueOf(value));
|
||||||
antdvFileInfo.setName(fileInfoWithoutContent.getFileOriginName());
|
antdvFileInfo.setName(fileInfoWithoutContent.getFileOriginName());
|
||||||
|
} catch (Exception e) {
|
||||||
|
// 未查询到文件继续查询下一个文件
|
||||||
|
}
|
||||||
// 设置文件访问url
|
// 设置文件访问url
|
||||||
String fileAuthUrl = fileInfoApi.getFileAuthUrl(Long.valueOf(value));
|
String fileAuthUrl = fileInfoApi.getFileAuthUrl(Long.valueOf(value));
|
||||||
antdvFileInfo.setThumbUrl(fileAuthUrl);
|
antdvFileInfo.setThumbUrl(fileAuthUrl);
|
||||||
|
|
Loading…
Reference in New Issue