|
@@ -420,10 +420,6 @@ class ChapterController extends BaseController
|
|
|
//用户是否强关
|
|
|
$this->is_had_subscribe = $is_had_subscribe = $inter_not_need_sub ? true : $this->getSubscribe();
|
|
|
|
|
|
- //阅读记录
|
|
|
- ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
- 'cid' => $cid, 'chapter_name' => $chapter->name]);
|
|
|
-
|
|
|
//判断当前是否有强制显示服务号信息的cookie、已经关注 跳转到服务号信息引导页
|
|
|
if($has_force_show_qrcode_cookie && $is_had_subscribe)
|
|
|
{
|
|
@@ -486,6 +482,9 @@ class ChapterController extends BaseController
|
|
|
$my_log = myLog('special');
|
|
|
$my_log->info('need subscribe-------------------------');
|
|
|
}
|
|
|
+ //阅读记录
|
|
|
+ ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
+ 'cid' => $cid, 'chapter_name' => $chapter->name]);
|
|
|
return response()->error($force_data['error_type'], $force_data['data']);
|
|
|
}
|
|
|
|
|
@@ -766,6 +765,10 @@ class ChapterController extends BaseController
|
|
|
//章节内容
|
|
|
$chapter_content = ChapterService::getChapter($this->book_info->bid, $this->cid);
|
|
|
$this->chapter->content = str_replace($chapter_content->name, '', $chapter_content->content);
|
|
|
+
|
|
|
+ //阅读记录
|
|
|
+ ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $this->book_info->bid, 'book_name' => $this->book_info->book_name,
|
|
|
+ 'cid' => $this->cid, 'chapter_name' => $this->chapter->name]);
|
|
|
//统计
|
|
|
$this->chapterStats();
|
|
|
//123特殊强关
|