|
@@ -13,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\User\Services\ReadRecordStatsService;
|
|
|
use App\Modules\YunQi\Services\BookUserService;
|
|
|
use Illuminate\Http\Request;
|
|
|
use App\Http\Controllers\Wap\BaseController;
|
|
@@ -629,6 +630,8 @@ class ChapterController extends BaseController
|
|
|
$this->share();
|
|
|
//广告
|
|
|
$this->isShowAd();
|
|
|
+ //完整阅读纪录 阅读纪录
|
|
|
+ $this->readRecordOther();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1203,7 +1206,14 @@ class ChapterController extends BaseController
|
|
|
|
|
|
private function readRecordOther()
|
|
|
{
|
|
|
- $chapter = $this->chapter;
|
|
|
+ $bid = $this->book_info->bid;
|
|
|
+ $cid = $this->cid;
|
|
|
+ $distribution_channel_id = $this->distribution_channel_id;
|
|
|
+ $send_order_id = $this->send_order_id;
|
|
|
+ $from = $this->from_type;
|
|
|
+ $sequence = $this->chapter->sequence;
|
|
|
+ ReadRecordStatsService::record($this->uid,$bid,$cid,$distribution_channel_id,$send_order_id,$from,$sequence);
|
|
|
+ /*$chapter = $this->chapter;
|
|
|
try {
|
|
|
$data = [];
|
|
|
$data['uid'] = $this->uid;
|
|
@@ -1216,7 +1226,7 @@ class ChapterController extends BaseController
|
|
|
DB::table('read_records')->insert($data);
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
}
|
|
|
|