问题修改
This commit is contained in:
@@ -100,7 +100,6 @@ public class FileController {
|
|||||||
@GetMapping("/download")
|
@GetMapping("/download")
|
||||||
public ResultBean download(@RequestParam(value = "filePath") String filePath, @RequestParam(value = "outFileName") String outFileName) {
|
public ResultBean download(@RequestParam(value = "filePath") String filePath, @RequestParam(value = "outFileName") String outFileName) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
|
|
||||||
File file = fileUploadComponent.findFileByPath(filePath);
|
File file = fileUploadComponent.findFileByPath(filePath);
|
||||||
if (file == null)
|
if (file == null)
|
||||||
return rb.setMsg("文件不存在");
|
return rb.setMsg("文件不存在");
|
||||||
|
|||||||
Reference in New Issue
Block a user