【更新】补充一个漏同步的类

pull/270/head
xuyuxiang 2025-06-15 23:29:51 +08:00
parent b7f164082b
commit b712f1c2c4
1 changed files with 2 additions and 2 deletions

View File

@ -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可以直接使用存储地址公网作为下载地址