|
@@ -238,12 +238,11 @@ public class SceneFileController{
|
|
|
public ResultData noticeBuildBd(String ossHost, String uuid, String dir) throws Exception {
|
|
|
String prefix = "http://" + ossHost + "/oss/bd_server/" + dir + "/";
|
|
|
String path = "/oss/4dkankan/bd_server/" + dir;
|
|
|
- List<String> strings = FileUtil.listFileNames(path);
|
|
|
- log.info("------------------------path:{}", strings);
|
|
|
- strings.parallelStream().forEach(fileName ->{
|
|
|
- String url = prefix.concat(fileName);
|
|
|
+ List<File> files = FileUtil.loopFiles(path);
|
|
|
+ files.parallelStream().forEach(file ->{
|
|
|
+ String url = prefix.concat(file.getAbsolutePath().substring(1).replace("/4dkankan",""));
|
|
|
SendCallAlgorithmDetail detail = new SendCallAlgorithmDetail();
|
|
|
- detail.setFileName(fileName);
|
|
|
+ detail.setFileName(FileUtil.getName(file.getAbsolutePath()));
|
|
|
detail.setUuid(uuid);
|
|
|
SendCallAlgorithmParam param = new SendCallAlgorithmParam();
|
|
|
param.setFilepath(url);
|