mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix: 【数据源】远程 Excel 数据源无法下载带用户名密码的文件
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user