mirror of https://gitee.com/xiaonuobase/snowy
【更新】补充一个漏同步的类
parent
b7f164082b
commit
b712f1c2c4
|
@ -280,7 +280,7 @@ public class DevFileServiceImpl extends ServiceImpl<DevFileMapper, DevFile> impl
|
||||||
throw new CommonException("后端域名地址未正确配置:snowy.config.common.backend-url为空");
|
throw new CommonException("后端域名地址未正确配置:snowy.config.common.backend-url为空");
|
||||||
}
|
}
|
||||||
if (BooleanUtil.isTrue(isDownloadAuth)){
|
if (BooleanUtil.isTrue(isDownloadAuth)){
|
||||||
downloadUrl= apiUrl + "/dev/file/authDownload?id=" + fileId + "&tenCode=" + tenApi.getCurrentTenCode() + "&token=";
|
downloadUrl= apiUrl + "/dev/file/authDownload?id=" + fileId + "&token=";
|
||||||
}else {
|
}else {
|
||||||
downloadUrl= apiUrl + "/dev/file/download?id=" + fileId;
|
downloadUrl= apiUrl + "/dev/file/download?id=" + fileId;
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,7 @@ public class DevFileServiceImpl extends ServiceImpl<DevFileMapper, DevFile> impl
|
||||||
// if(ObjectUtil.isEmpty(apiUrl)) {
|
// if(ObjectUtil.isEmpty(apiUrl)) {
|
||||||
// throw new CommonException("后端域名地址未正确配置:snowy.config.common.backend-url为空");
|
// throw new CommonException("后端域名地址未正确配置:snowy.config.common.backend-url为空");
|
||||||
// }
|
// }
|
||||||
// downloadUrl= apiUrl + "/dev/file/download?id=" + fileId + "&tenCode=" + tenApi.getCurrentTenCode();
|
// downloadUrl= apiUrl + "/dev/file/download?id=" + fileId;
|
||||||
// devFile.setDownloadPath(downloadUrl);
|
// devFile.setDownloadPath(downloadUrl);
|
||||||
// } else {
|
// } else {
|
||||||
// // 阿里云、腾讯云、MINIO可以直接使用存储地址(公网)作为下载地址
|
// // 阿里云、腾讯云、MINIO可以直接使用存储地址(公网)作为下载地址
|
||||||
|
|
Loading…
Reference in New Issue