代码提交

This commit is contained in:
liang.chao 2025-09-18 11:01:22 +08:00
parent 662f1eecb9
commit 721cfd85ff
1 changed files with 3 additions and 3 deletions

View File

@ -354,10 +354,10 @@ public class FileManagementController extends BaseController {
return R.ok(num);
}
@GetMapping("/getFileAsBase64}")
public R getFileAsBase64(@PathVariable Long id) throws IOException {
@GetMapping("/getFileAsBase64")
public R getFileAsBase64(DaKyProFilesContentsDto dto) throws IOException {
Map<String, Object> response = new HashMap<>();
DaKyProFilesContentsVo record = fileManageService.getFileById(id);
DaKyProFilesContentsVo record = fileManageService.getFileById(Long.parseLong(dto.getId()));
if (record == null || StringUtils.isBlank(record.getFilePath())) {
return R.fail("文件未找到");