Helius
2021-12-16 760935017baab00ca8e7f2304122e1ff822f359b
fix upload url and savePath
3 files modified
12 ■■■■ changed files
src/main/java/cc/mrbird/febs/video/controller/CommonController.java 4 ●●●● patch | view | raw | blame | history
src/main/resources/application-dev.yml 4 ●●●● patch | view | raw | blame | history
src/main/resources/application-test.yml 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/video/controller/CommonController.java
@@ -38,10 +38,10 @@
    @RequestMapping(value = "/upload")
    public FebsResponse upload(MultipartRequest request) throws IOException {
        // 保存路径 /Users/helius/Desktop/
        baseSavePath = "/Users/helius/Desktop/";
//        baseSavePath = "/Users/helius/Desktop/";
        // 访问路径
        baseUrl = "http://localhost:1234/";
//        baseUrl = "http://localhost:1234/";
        List<String> visitPathes = updateImg(request);
        return new FebsResponse().success().data(visitPathes);
    }
src/main/resources/application-dev.yml
@@ -50,5 +50,5 @@
system:
  images:
    path: 123
    url: 123
    path: /home/javaweb/webresource/video/
    url: http://120.27.238.55:8000/video/
src/main/resources/application-test.yml
@@ -50,5 +50,5 @@
system:
  images:
    path: 123
    url: 123
    path: /home/javaweb/webresource/video/
    url: http://120.27.238.55:8000/video/