Browse Source

Merge branch 'stabble' of iqiyoo:zhuishuyun_wap into stabble

onlinetest 6 years ago
parent
commit
1c305b42ef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/Wap/Book/ChapterController.php

+ 2 - 2
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -389,8 +389,8 @@ class ChapterController extends BaseController
 
         $this->is_need_subscribe = !$force_subscribe;
 
-        //图书域名,book_configs表的promotion_domain 要跟当前的主机名匹配 在强关章节后
-        if ($this->is_need_subscribe && $this->isVisitDomainEqualBookDomain($domain)) {
+        //图书域名,book_configs表的promotion_domain 要跟当前的主机名匹配 在强关章节后3章
+        if ($chapter->sequence > $subscribe_seq + 3 && $this->isVisitDomainEqualBookDomain($domain)) {
             if($special_user_log && $special_user_log == $this->uid){
                 $my_log = myLog('special');
                 $my_log->info('book domain not match------------------------');