!111 [异常提示语错误] 文件上传异常提示语错误

Merge pull request !111 from 与或非/hotfix/20220327_msg
This commit is contained in:
芋道源码 2022-03-28 01:09:32 +00:00 committed by Gitee
commit b9693c3e06
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -44,7 +44,7 @@ public class FtpFileClient extends AbstractFileClient<FtpFileClientConfig> {
String dir = StrUtil.removeSuffix(filePath, fileName); String dir = StrUtil.removeSuffix(filePath, fileName);
boolean success = ftp.upload(dir, fileName, new ByteArrayInputStream(content)); boolean success = ftp.upload(dir, fileName, new ByteArrayInputStream(content));
if (!success) { if (!success) {
throw new FtpException(StrUtil.format("文件到目标目录 ({}) 失败", filePath)); throw new FtpException(StrUtil.format("文件到目标目录 ({}) 失败", filePath));
} }
// 拼接返回路径 // 拼接返回路径
return super.formatFileUrl(config.getDomain(), path); return super.formatFileUrl(config.getDomain(), path);