Kaynağa Gözat

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

dengsixing 1 yıl önce
ebeveyn
işleme
c31b0d81dd

+ 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 ->{