|
@@ -325,9 +325,9 @@ class ChapterController extends BaseController
|
|
$this->cid = $cid;
|
|
$this->cid = $cid;
|
|
//图书域名,book_configs表的promotion_domain 要跟当前的主机名匹配
|
|
//图书域名,book_configs表的promotion_domain 要跟当前的主机名匹配
|
|
if ($this->isVisitDomainEqualBookDomain($domain)) {
|
|
if ($this->isVisitDomainEqualBookDomain($domain)) {
|
|
- return response()->error('WAP_DOMAIN_NOT_MATCH', [
|
|
|
|
|
|
+ /*return response()->error('WAP_DOMAIN_NOT_MATCH', [
|
|
'url' => $this->getCorrespondBookUrl()
|
|
'url' => $this->getCorrespondBookUrl()
|
|
- ]);
|
|
|
|
|
|
+ ]);*/
|
|
}
|
|
}
|
|
|
|
|
|
//下架图书不能看
|
|
//下架图书不能看
|
|
@@ -419,6 +419,16 @@ class ChapterController extends BaseController
|
|
//广告
|
|
//广告
|
|
if($this->isUserInAdSample() && $ad_status && $ad_status == 1 && $user_info->balance < $fee){
|
|
if($this->isUserInAdSample() && $ad_status && $ad_status == 1 && $user_info->balance < $fee){
|
|
$this->getChapter();
|
|
$this->getChapter();
|
|
|
|
+ //广告解锁2张
|
|
|
|
+ if($this->chapter->next_cid){
|
|
|
|
+ $next_chapter = ChapterService::getChapterNameById($this->chapter->next_cid, $bid);
|
|
|
|
+ if($next_chapter){
|
|
|
|
+ $next_chapter_name = $next_chapter->name;
|
|
|
|
+ $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');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $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);
|
|
}
|
|
}
|