mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
解决详情页addVisit接口400错误
This commit is contained in:
parent
d8ce698e71
commit
32847bc874
@ -273,7 +273,7 @@ public class BookController {
|
|||||||
|
|
||||||
@RequestMapping("addVisit")
|
@RequestMapping("addVisit")
|
||||||
@ResponseBody
|
@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);
|
String userId = commonCacheUtil.get(token);
|
||||||
|
|
||||||
bookService.addVisitCount(bookId,userId,indexNum);
|
bookService.addVisitCount(bookId,userId,indexNum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user