|
@@ -68,6 +68,9 @@ public class InProcessServiceImpl extends InBaseService implements IInProcessSer
|
|
|
*/
|
|
|
private void cpFile() {
|
|
|
String ftpDir = sysConfigService.selectConfigByKey("in.ftp.dir");
|
|
|
+ if (!ftpDir.endsWith(Constants.DIR_END)) {
|
|
|
+ ftpDir += "/";
|
|
|
+ }
|
|
|
//获取内网同步正式目录
|
|
|
String syncDir = syncDIr();
|
|
|
// 创建File对象
|
|
@@ -90,7 +93,7 @@ public class InProcessServiceImpl extends InBaseService implements IInProcessSer
|
|
|
Files.move(zipFile.toPath(), Paths.get(syncDir + zipFile.getName()), StandardCopyOption.REPLACE_EXISTING);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|