|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace App\Http\Controllers\Wap\Book;
|
|
|
|
|
|
+use App\Console\Commands\YqBook;
|
|
|
use App\Modules\Book\Models\DataAnalysisBookConfig;
|
|
|
use App\Modules\Book\Services\BookService;
|
|
|
use App\Modules\Book\Services\ChapterCommentsService;
|
|
@@ -12,6 +13,7 @@ use App\Modules\Statistic\Services\DataAnalysisChapterService;
|
|
|
use App\Modules\Statistic\Services\DataAnalysisSelectUserService;
|
|
|
use App\Modules\Statistic\Services\WapVisitStatService;
|
|
|
use App\Modules\Subscribe\Services\OrderService;
|
|
|
+use App\Modules\YunQi\Services\BookUserService;
|
|
|
use Illuminate\Http\Request;
|
|
|
use App\Http\Controllers\Wap\BaseController;
|
|
|
use Cookie;
|
|
@@ -345,6 +347,10 @@ 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(Cookie::get('force_show_qrcode') && $is_had_subscribe)
|
|
|
{
|
|
@@ -364,9 +370,6 @@ class ChapterController extends BaseController
|
|
|
//vip前一张和枪管前一张的访问统计
|
|
|
$this->beforeForceSubAndBeforeVipUvAndPv($book_info, $subscribe_seq, $chapter);
|
|
|
}
|
|
|
- //阅读记录
|
|
|
- ReadRecordService::addReadRecord(['uid' => $this->uid, 'bid' => $bid, 'book_name' => $book_info->book_name,
|
|
|
- 'cid' => $cid, 'chapter_name' => $chapter->name]);
|
|
|
|
|
|
//不用关注且不是vip章节
|
|
|
if ($force_subscribe && $chapter->is_vip == 0) {
|
|
@@ -1231,6 +1234,16 @@ class ChapterController extends BaseController
|
|
|
$chapter_order = ChapterOrderService::checkBookIsOrdered($this->uid, $book_info->bid);
|
|
|
if (!$chapter_order) return true;
|
|
|
}
|
|
|
+
|
|
|
+ if($book_info->is_on_shelf == 10){
|
|
|
+ //Log::info('ddddddddddddddddddddddddddd');
|
|
|
+ $yq_book_user = BookUserService::selectUser($this->uid);
|
|
|
+ //Log::info($yq_book_user);
|
|
|
+ if($yq_book_user && $yq_book_user->type == 'ENABLE'){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
return false;
|
|
|
}
|
|
|
|