|
@@ -166,7 +166,7 @@ public class DataService {
|
|
|
int reply;
|
|
|
try {
|
|
|
ftpClient.connect(PropKit.get("ftp_host"), PropKit.getInt("ftp_port"));
|
|
|
- ftpClient.login(PropKit.get("ftp_user"), PropKit.get("ftp_password"));
|
|
|
+// ftpClient.login(PropKit.get("ftp_user"), PropKit.get("ftp_password"));
|
|
|
reply = ftpClient.getReplyCode();
|
|
|
if (!FTPReply.isPositiveCompletion(reply)) {
|
|
|
ftpClient.disconnect();
|
|
@@ -176,7 +176,7 @@ public class DataService {
|
|
|
ftpClient.setFileType(FTPClient.BINARY_FILE_TYPE);
|
|
|
ftpClient.enterLocalPassiveMode();
|
|
|
|
|
|
- File localFile = new File("/home/zskk/FTP_FILE" + File.separatorChar + fileName);
|
|
|
+ File localFile = new File("/home/tmszyy/FTP_FILE" + File.separatorChar + fileName);
|
|
|
OutputStream os = new FileOutputStream(localFile);
|
|
|
//ftp中文名需要iso-8859-1字符
|
|
|
boolean flag2 = ftpClient.retrieveFile(new String(remoteFileName.getBytes("GBK"), "iso-8859-1"), os);
|