|
@@ -526,14 +526,14 @@ class ChapterController extends BaseController
|
|
$my_log->info('ad-----in--------------------');
|
|
$my_log->info('ad-----in--------------------');
|
|
}
|
|
}
|
|
//广告解锁2张
|
|
//广告解锁2张
|
|
- if($this->chapter->next_cid){
|
|
|
|
|
|
+ /*if($this->chapter->next_cid){
|
|
$next_chapter = ChapterService::getChapterNameById($this->chapter->next_cid, $bid);
|
|
$next_chapter = ChapterService::getChapterNameById($this->chapter->next_cid, $bid);
|
|
if($next_chapter){
|
|
if($next_chapter){
|
|
$next_chapter_name = $next_chapter->name;
|
|
$next_chapter_name = $next_chapter->name;
|
|
$this->bookOrderOrChapterOrder($book_info, $this->chapter->next_cid, 0, $next_chapter_name, 1);
|
|
$this->bookOrderOrChapterOrder($book_info, $this->chapter->next_cid, 0, $next_chapter_name, 1);
|
|
AdVisitStatService::create($this->uid,$this->book_info->bid,$this->chapter->next_cid,'UNLOCK_2');
|
|
AdVisitStatService::create($this->uid,$this->book_info->bid,$this->chapter->next_cid,'UNLOCK_2');
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
$this->chapter->is_show_ad = 0;
|
|
$this->chapter->is_show_ad = 0;
|
|
$this->bookOrderOrChapterOrder($book_info, $cid, 0, $chapter->name, 1);
|
|
$this->bookOrderOrChapterOrder($book_info, $cid, 0, $chapter->name, 1);
|
|
return response()->item(new ChapterTransformer, $this->chapter);
|
|
return response()->item(new ChapterTransformer, $this->chapter);
|