|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.contro.controller;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.core.util.ZipUtil;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
@@ -212,14 +213,19 @@ public class SceneFileController{
|
|
|
}
|
|
|
|
|
|
@PostMapping("/noticeBuild")
|
|
|
- public ResultData noticeBuild(String uuid) throws Exception {
|
|
|
- return sceneFileBuildService.noticeBuild(uuid);
|
|
|
+ public ResultData noticeBuild(SendCallAlgorithmDetail detail) throws Exception {
|
|
|
+ if(StrUtil.isNotEmpty(detail.getUuid())){
|
|
|
+
|
|
|
+ }
|
|
|
+ return sceneFileBuildService.noticeBuild(detail.getUuid());
|
|
|
}
|
|
|
|
|
|
@PostMapping("/send_bd")
|
|
|
- public ResultData noticeBuildBd(String uuid) throws Exception {
|
|
|
- String prefix = "http://192.168.0.25/oss/bd_server/" + uuid + "/";
|
|
|
- String path = "/oss/4dkankan/bd_server/" + uuid;
|
|
|
+ public ResultData noticeBuildBd(Map<String, String> params) throws Exception {
|
|
|
+ String uuid = params.get("uuid");
|
|
|
+ String dir = params.get("dir");
|
|
|
+ String prefix = "http://192.168.0.25/oss/bd_server/" + dir + "/";
|
|
|
+ String path = "/oss/4dkankan/bd_server/" + dir;
|
|
|
List<String> strings = FileUtil.listFileNames(path);
|
|
|
strings.parallelStream().forEach(fileName ->{
|
|
|
String url = prefix.concat(fileName);
|