|
@@ -97,12 +97,10 @@ class ChapterController extends BaseController
|
|
|
}
|
|
|
|
|
|
if ($chapter->is_vip == 0) {
|
|
|
- if ($chapter->sequence > 1) {
|
|
|
- ReadRecordService::addReadRecord([
|
|
|
- 'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
- 'cid' => $cid, 'chapter_name' => $chapter->name
|
|
|
- ]);
|
|
|
- }
|
|
|
+ ReadRecordService::addReadRecord([
|
|
|
+ 'uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
+ 'cid' => $cid, 'chapter_name' => $chapter->name
|
|
|
+ ]);
|
|
|
return response()->item(new ChapterTransformer, $this->getChapter($bid, $cid, $chapter));
|
|
|
}
|
|
|
|