系统集成

This commit is contained in:
cwchen 2025-10-17 16:59:31 +08:00
parent 04d4a4f112
commit 7196a0694e
1 changed files with 1 additions and 3 deletions

View File

@ -41,8 +41,6 @@ public class FileUploadController {
@Resource(name = "OcrService")
private OcrService ocrService;
@Value("${uploadSuffix.main_database}")
private String uploadSuffix;
@Resource
private MinioConfig minioConfig;
@ -57,7 +55,7 @@ public class FileUploadController {
@PostMapping(value = "uploadFile")
private AjaxResult uploadFile(@RequestParam(name = "file",required = false) MultipartFile file) throws Exception {
// 生成文件路径
String uploadPath = FileUtil.generateDatePath(file, uploadSuffix).replace("\\", "/");
String uploadPath = FileUtil.generateDatePath(file, "test").replace("\\", "/");
fileUploadService.uploadFile(file,uploadPath);
System.err.println("文件路径----" + uploadPath);