liusheng
2025-11-07 f5412313edae1ffae3d5471e5eca8dde4695f0d2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -64,6 +64,15 @@
    @Value("${uploadSwitch}")
    private Integer uploadSwitch;
    @Value("${fileUpload}")
    private String fileUpload;
    @Value("${profile}")
    private String profile;
    @Value("${spring.profiles.active}")
    private String active;
    /**
     * 通用下载请求
     *
@@ -112,8 +121,8 @@
            // 上传并返回新文件名称
            String fileName = FileUploadUtils.uploadSort(filePath, file);
            String url = null;
            //新华医院特殊,这个视频的访问得转
            String xhPath = "http://218.108.11.22:8093/profile-api";
            String xhPath = fileUpload + profile;
            if (uploadSwitch == 1) {
                String fn = fileName.replaceAll("/profile", "");
                url = xhPath + fn;
@@ -276,7 +285,7 @@
            e.printStackTrace();
        }
        String url = null;
        String xhPath = "http://218.108.11.22:8093/profile-api";
        String xhPath = fileUpload + profile;
        if (uploadSwitch == 1) {
            url = xhPath + "/upload/show/" + fileName.split("\\.", 2)[0] + "/" + fileName;
        } else {