xiaoyong931011
2022-07-05 ed5b338a4ef3e95db7354ad3f3d65f8752b5915c
src/main/java/com/xcong/farmer/cms/modules/system/controller/AdminCommonController.java
@@ -112,12 +112,15 @@
    @Value("${static.resource.url}")
    private String resourceUrl;
    @Value("${static.resource.path}")
    private String resourcePath;
    @ApiOperation(value = "文件上传", notes = "文件上传")
    @PostMapping("/uploadFile")
    public Result uploadFile(@RequestParam("file") MultipartFile file) throws Exception {
        // 文件保存目录路径
        String savePath = AppContants.PICTURE_PATH;
        String savePath = resourcePath;
        // 文件保存目录URL
        String saveUrl = resourceUrl;
        // 检查目录