|
@@ -684,8 +684,8 @@ public class AlgorithmTaskServiceImpl extends BaseServiceImpl<AlgorithmTaskMappe
|
|
if (osName.contains("win")) {
|
|
if (osName.contains("win")) {
|
|
} else {
|
|
} else {
|
|
// Linux/Unix 环境
|
|
// Linux/Unix 环境
|
|
- imagePath = imagePath.replaceAll("/", "\\\\");
|
|
|
|
- destPath = destPath.replaceAll("/", "\\\\");
|
|
|
|
|
|
+ imagePath = imagePath.replaceAll("\\\\", "/");
|
|
|
|
+ destPath = destPath.replaceAll("\\\\", "/");
|
|
}
|
|
}
|
|
FileUtils.copyFile(imagePath, destPath);
|
|
FileUtils.copyFile(imagePath, destPath);
|
|
log.info("复制图片文件成功source:{},target:{}", imagePath, destPath);
|
|
log.info("复制图片文件成功source:{},target:{}", imagePath, destPath);
|
|
@@ -699,8 +699,8 @@ public class AlgorithmTaskServiceImpl extends BaseServiceImpl<AlgorithmTaskMappe
|
|
if (osName.contains("win")) {
|
|
if (osName.contains("win")) {
|
|
} else {
|
|
} else {
|
|
// Linux/Unix 环境
|
|
// Linux/Unix 环境
|
|
- txtPathStr = txtPathStr.replaceAll("/", "\\\\");
|
|
|
|
- destLabelPath = destLabelPath.replaceAll("/", "\\\\");
|
|
|
|
|
|
+ txtPathStr = txtPathStr.replaceAll("\\\\", "/");
|
|
|
|
+ destLabelPath = destLabelPath.replaceAll("\\\\", "/");
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
FileUtils.copyFile(txtPathStr, destLabelPath);
|
|
FileUtils.copyFile(txtPathStr, destLabelPath);
|