From c1c4a6c72dd81a25f7c064561a981d8de86143e1 Mon Sep 17 00:00:00 2001 From: 15856 <15856818120@163.com> Date: Mon, 17 Jun 2024 13:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bonus/sgzb/file/controller/SysFileController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgzb-modules/sgzb-file/src/main/java/com/bonus/sgzb/file/controller/SysFileController.java b/sgzb-modules/sgzb-file/src/main/java/com/bonus/sgzb/file/controller/SysFileController.java index 22cf9b41..2638c5ce 100644 --- a/sgzb-modules/sgzb-file/src/main/java/com/bonus/sgzb/file/controller/SysFileController.java +++ b/sgzb-modules/sgzb-file/src/main/java/com/bonus/sgzb/file/controller/SysFileController.java @@ -35,8 +35,8 @@ public class SysFileController // 上传并返回访问地址 String url = sysFileService.uploadFile(file); SysFile sysFile = new SysFile(); - sysFile.setName(FileUtils.getName(url)); - sysFile.setUrl(url); + sysFile.setFileName(FileUtils.getName(url)); + sysFile.setFileUrl(url); return R.ok(sysFile); } catch (Exception e)