fix: 【数据源】远程 Excel 数据源无法下载带用户名密码的文件

This commit is contained in:
taojinlong
2025-03-10 16:03:55 +08:00
committed by taojinlong
parent 398923b39c
commit 2c16d286e4

View File

@@ -759,6 +759,7 @@ public class ExcelUtils {
username = new String(Base64.getDecoder().decode(remoteExcelRequest.getUserName()));
password = new String(Base64.getDecoder().decode(remoteExcelRequest.getPasswd()));
}
filePath = filePath.startsWith("/") ? filePath.substring(1) : filePath;
int port = 21;
String suffix = filePath.substring(filePath.lastIndexOf(".") + 1);
String tranName = UUID.randomUUID().toString() + "." + suffix;