Merge branch 'master' of https://gitee.com/wjl2008_admin/nuttyreading-java into zcc
This commit is contained in:
@@ -161,26 +161,14 @@ public class BookController {
|
|||||||
// @RequiresPermissions("book:book:info")
|
// @RequiresPermissions("book:book:info")
|
||||||
public R appinfo(@PathVariable("id") Integer id,
|
public R appinfo(@PathVariable("id") Integer id,
|
||||||
@PathVariable("userId") Integer userId) {
|
@PathVariable("userId") Integer userId) {
|
||||||
|
|
||||||
|
|
||||||
BookEntity book = bookService.getById(id);
|
BookEntity book = bookService.getById(id);
|
||||||
|
|
||||||
book.setIsBuy(true);
|
book.setIsBuy(true);
|
||||||
|
|
||||||
|
|
||||||
boolean b = myUserService.bookAuthen(id, userId);
|
boolean b = myUserService.bookAuthen(id, userId);
|
||||||
if (!b) {
|
if (!b) {
|
||||||
// 无权限
|
// 无权限
|
||||||
book.setIsBuy(false);
|
book.setIsBuy(false);
|
||||||
}
|
}
|
||||||
//书籍详情返回,购买状态,免费章节数
|
//书籍详情返回,购买状态,免费章节数
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
String authorName = "";
|
String authorName = "";
|
||||||
String publisherName = "";
|
String publisherName = "";
|
||||||
String authorId = book.getAuthorId();
|
String authorId = book.getAuthorId();
|
||||||
|
|||||||
Reference in New Issue
Block a user