浏览代码

模拟摆渡上传接口增加osshost参数

dengsixing 1 年之前
父节点
当前提交
c31b0d81dd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/contro/controller/SceneFileController.java

+ 2 - 2
src/main/java/com/fdkankan/contro/controller/SceneFileController.java

@@ -221,8 +221,8 @@ public class SceneFileController{
     }
 
     @PostMapping("/send_bd")
-    public ResultData noticeBuildBd(String uuid, String dir) throws Exception {
-        String prefix = "http://192.168.0.25/oss/bd_server/" + dir + "/";
+    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);
         strings.parallelStream().forEach(fileName ->{