From aab9f74b97df038154d507b6d17b6f96a8337efc Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 03 七月 2025 13:46:18 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/main/java/com/ruoyi/other/controller/TempFileController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ruoyi/other/controller/TempFileController.java b/src/main/java/com/ruoyi/other/controller/TempFileController.java index 6834d13..1ed7875 100644 --- a/src/main/java/com/ruoyi/other/controller/TempFileController.java +++ b/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, Integer 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()); } } -- Gitblit v1.9.3