chenrui
2025-05-26 63ccaee5545740122a9d58983aa75d9da9de7530
src/main/java/com/ruoyi/other/controller/TempFileController.java
@@ -18,10 +18,10 @@
    private TempFileService tempFileService;
    @PostMapping("/upload")
    public AjaxResult uploadFile(MultipartFile file) {
    public AjaxResult uploadFile(MultipartFile file, String type) {
        try {
            return AjaxResult.success(tempFileService.uploadFile(file));
        }catch (Exception e) {
            return AjaxResult.success(tempFileService.uploadFile(file, type));
        } catch (Exception e) {
            return AjaxResult.error(e.getMessage());
        }
    }