Commit f533a2e7c5198aa634db7bb6ff072035458c91d3
1 parent
e3ddb29c
fix 提示语错误
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-file/src/main/java/cn/iocoder/yudao/framework/file/core/client/ftp/FtpFileClient.java
| @@ -44,7 +44,7 @@ public class FtpFileClient extends AbstractFileClient<FtpFileClientConfig> { | @@ -44,7 +44,7 @@ public class FtpFileClient extends AbstractFileClient<FtpFileClientConfig> { | ||
| 44 | String dir = StrUtil.removeSuffix(filePath, fileName); | 44 | String dir = StrUtil.removeSuffix(filePath, fileName); |
| 45 | boolean success = ftp.upload(dir, fileName, new ByteArrayInputStream(content)); | 45 | boolean success = ftp.upload(dir, fileName, new ByteArrayInputStream(content)); |
| 46 | if (!success) { | 46 | if (!success) { |
| 47 | - throw new FtpException(StrUtil.format("上海文件到目标目录 ({}) 失败", filePath)); | 47 | + throw new FtpException(StrUtil.format("上传文件到目标目录 ({}) 失败", filePath)); |
| 48 | } | 48 | } |
| 49 | // 拼接返回路径 | 49 | // 拼接返回路径 |
| 50 | return super.formatFileUrl(config.getDomain(), path); | 50 | return super.formatFileUrl(config.getDomain(), path); |