🐛 修复 FTP 初始化显示错误

This commit is contained in:
zhaojun1998
2020-01-24 18:44:59 +08:00
parent 2ee3f3dd66
commit a12f685340

View File

@@ -49,7 +49,7 @@ public class FtpServiceImpl extends AbstractFileService implements FileService {
domain = stringStorageConfigMap.get(StorageConfigConstant.DOMAIN_KEY).getValue();
if (Objects.isNull(host) || Objects.isNull(port) || Objects.isNull(username) || Objects.isNull(password)) {
isInitialized = true;
isInitialized = false;
} else {
ftp = new Ftp(host, Integer.parseInt(port), username, password);
isInitialized = testConnection();