Skip to content

Commit

Permalink
Merge branch 'hotfix-0.8.1' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyinbo committed May 20, 2024
2 parents 221ec56 + 87adc1d commit 371afd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static ImageDetectionReqDTO convert(ModelMessageBO message) {
var fileNodeBO = fileNodes.get(0);
String url;
if (fileNodeBO.getType().equals(FILE)) {
url = fileNodeBO.getFile().getInternalUrl();
url = fileNodeBO.getFile().getUrl();
} else {
url = fileNodeBO.getFiles().get(0).getFile().getInternalUrl();
url = fileNodeBO.getFiles().get(0).getFile().getUrl();
}
if (StrUtil.isEmpty(url)) {
throw new IllegalArgumentException("file url is empty");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ private static void traverFile(DataInfoBO.FileNodeBO fileNodeBO, DataInfo dataIn
if (prePath.startsWith(CAMERA_IMAGE)) {
if (CollUtil.isEmpty(dataInfo.getImageUrls())) {
List<String> imageUrlList = new ArrayList<>();
imageUrlList.add(fileNodeBO.getFile().getInternalUrl());
imageUrlList.add(fileNodeBO.getFile().getUrl());
dataInfo.setImageUrls(imageUrlList);
} else {
dataInfo.getImageUrls().add(fileNodeBO.getFile().getInternalUrl());
dataInfo.getImageUrls().add(fileNodeBO.getFile().getUrl());
}
}
//pcd
if (prePath.startsWith(LIDAR_POINT_CLOUD)) {
dataInfo.setPointCloudUrl(getFileBO(fileNodeBO.getFile()).getInternalUrl());
dataInfo.setPointCloudUrl(getFileBO(fileNodeBO.getFile()).getUrl());
}
//cameraConfig
if (prePath.startsWith(CAMERA_CONFIG)) {
dataInfo.setCameraConfigUrl(fileNodeBO.getFile().getInternalUrl());
dataInfo.setCameraConfigUrl(fileNodeBO.getFile().getUrl());
}
}
if (DIRECTORY.equals(fileNodeBO.getType()) && CollUtil.isNotEmpty(fileNodeBO.getFiles())) {
Expand Down

0 comments on commit 371afd0

Please sign in to comment.