1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-01 22:53:29 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

修复书籍下载链接全返回读一本书下载链接问题

This commit is contained in:
2022-04-28 22:35:12 +08:00
parent e957b512cd
commit d9fb3586fe
3 changed files with 5 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ public class FileController extends BaseController {
@ApiOperation(value = "书籍下载页面获取文件提供的下载方式", notes = "")
@RequestMapping(value = "getFileByBookId", method = {RequestMethod.GET})
@ResponseBody
public CommonReturnType getFileByBookId(@RequestParam(value = "bookId", required = false) Integer bookId) throws BusinessException, InvocationTargetException, IllegalAccessException {
public CommonReturnType getFileByBookId(@RequestParam(value = "bookId", required = true) Integer bookId) throws BusinessException, InvocationTargetException, IllegalAccessException {
List<FileModel> fileModels = fileService.getFileByBookId(bookId);
List<FileVO> fileVOS = new ArrayList<>();