|
@@ -135,8 +135,11 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
@Override
|
|
|
public void downLoadSource(BuildSceneCallMessage buildSceneMqMessage,String path){
|
|
|
String ossPath = ConstantFilePath.OSS_PREFIX
|
|
|
- + path.replace(ConstantFilePath.BUILD_MODEL_PATH, "/")
|
|
|
- .replace(ConstantFilePath.BUILD_MODEL_LASER_PATH, "/");
|
|
|
+ + path.replace(ConstantFilePath.BUILD_MODEL_PATH, "")
|
|
|
+ .replace(ConstantFilePath.BUILD_MODEL_LASER_PATH, "");
|
|
|
+ if (!ossPath.endsWith("/")) {
|
|
|
+ ossPath = ossPath.concat("/");
|
|
|
+ }
|
|
|
fYunFileService.downloadFileByCommand(path + File.separator + "capture", ossPath);
|
|
|
}
|
|
|
|