文件上传接口修改

This commit is contained in:
liang.chao 2025-02-25 18:06:38 +08:00
parent aee826b9a6
commit 9ffd1cb932
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public class UploadController {
String pathname = targetFile.getAbsolutePath();
ar.setSucceedMsg("文件上传成功");
ar.setSucceed(pathname);
ar.setMessage(file.getOriginalFilename());
} catch (Exception e) {
log.error(e.toString(), e);
ar.setFailMsg("文件上传失败");