Преглед на файлове

模拟摆渡上传接口增加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 ->{