|
@@ -348,6 +348,16 @@ class ChapterController extends BaseController
|
|
|
|
|
|
if(Cookie::get('force_show_qrcode') && $is_had_subscribe)
|
|
|
{
|
|
|
+
|
|
|
+ if($last_bid_read_record = ReadRecordService::getRecordByUidBid($this->uid,$bid))
|
|
|
+ {
|
|
|
+
|
|
|
+ ReadRecordService::updateLastReadRecord(['uid' => $this->uid, 'last_read'=>$last_bid_read_record]);
|
|
|
+ }else{
|
|
|
+
|
|
|
+ ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
+ 'cid' => $cid, 'chapter_name' => $chapter->name]);
|
|
|
+ }
|
|
|
$force_read_url = '/subscribe/getFromUser';
|
|
|
$force_read_data = ['src' => $force_read_url];
|
|
|
return response()->error('WAP_NOT_SUBSCRIBE', $force_read_data);
|