新手摸商品
This commit is contained in:
@@ -161,26 +161,14 @@ public class BookController {
|
||||
// @RequiresPermissions("book:book:info")
|
||||
public R appinfo(@PathVariable("id") Integer id,
|
||||
@PathVariable("userId") Integer userId) {
|
||||
|
||||
|
||||
BookEntity book = bookService.getById(id);
|
||||
|
||||
book.setIsBuy(true);
|
||||
|
||||
|
||||
boolean b = myUserService.bookAuthen(id, userId);
|
||||
if (!b) {
|
||||
// 无权限
|
||||
book.setIsBuy(false);
|
||||
}
|
||||
//书籍详情返回,购买状态,免费章节数
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
String authorName = "";
|
||||
String publisherName = "";
|
||||
String authorId = book.getAuthorId();
|
||||
@@ -377,7 +365,7 @@ public class BookController {
|
||||
/**
|
||||
* 章节拆分 2.0
|
||||
*/
|
||||
@RequestMapping("/getWord")
|
||||
@RequestMapping("/getWord")
|
||||
public R getWord(@RequestParam("id") Integer id) {
|
||||
|
||||
ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
|
||||
|
||||
Reference in New Issue
Block a user