|
@@ -273,10 +273,7 @@ class ChapterController extends BaseController
|
|
|
'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
'cid' => $cid, 'chapter_name' => $chapter->name
|
|
|
]);
|
|
|
- //用户标签
|
|
|
- if ($chapter->sequence >= 20) {
|
|
|
- $this->addTag($book_info);
|
|
|
- }
|
|
|
+
|
|
|
return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
|
|
|
}
|
|
|
|
|
@@ -286,10 +283,7 @@ class ChapterController extends BaseController
|
|
|
'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
'cid' => $cid, 'chapter_name' => $chapter->name
|
|
|
]);
|
|
|
- //用户标签
|
|
|
- if ($chapter->sequence >= 20) {
|
|
|
- $this->addTag($book_info);
|
|
|
- }
|
|
|
+
|
|
|
return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
|
|
|
}
|
|
|
|
|
@@ -355,10 +349,7 @@ class ChapterController extends BaseController
|
|
|
'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
'cid' => $cid, 'chapter_name' => $chapter->name
|
|
|
]);
|
|
|
- //用户标签
|
|
|
- if ($chapter->sequence >= 20) {
|
|
|
- $this->addTag($book_info);
|
|
|
- }
|
|
|
+
|
|
|
return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
|
|
|
} else {
|
|
|
|