小说章节定价规则自定义

This commit is contained in:
xiongxiaoyang
2020-11-22 17:15:20 +08:00
parent cd11854eff
commit 31aa3192fd
11 changed files with 140 additions and 66 deletions

View File

@ -282,6 +282,7 @@ public class UserController extends BaseController {
if (userDetails == null) {
return ResultBean.fail(ResponseStatus.NO_LOGIN);
}
buyRecord.setBuyAmount(bookService.queryBookIndex(buyRecord.getBookIndexId()).getBookPrice());
userService.buyBookIndex(userDetails.getId(),buyRecord);
return ResultBean.ok();
}