mirror of
https://gitee.com/novel_dev_team/novel
synced 2026-07-20 17:52:45 +08:00
解决详情页addVisit接口400错误
This commit is contained in:
@@ -273,7 +273,7 @@ public class BookController {
|
||||
|
||||
@RequestMapping("addVisit")
|
||||
@ResponseBody
|
||||
public String addVisit(@RequestParam("bookId") Long bookId,@RequestParam("indexNum") Integer indexNum,@RequestParam("token") String token) {
|
||||
public String addVisit(@RequestParam("bookId") Long bookId,@RequestParam(value = "indexNum",defaultValue = "0") Integer indexNum,@RequestParam(value = "token",defaultValue = "") String token) {
|
||||
String userId = commonCacheUtil.get(token);
|
||||
|
||||
bookService.addVisitCount(bookId,userId,indexNum);
|
||||
|
||||
Reference in New Issue
Block a user