Browse Source

book 5254 domain

zz 6 years ago
parent
commit
dea35600a3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/Http/Controllers/Wap/Book/ChapterController.php

+ 8 - 0
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -426,6 +426,14 @@ class ChapterController extends BaseController
 
 
         $this->is_need_subscribe = !$force_subscribe;
         $this->is_need_subscribe = !$force_subscribe;
 
 
+        if($bid == 5254){
+            $this->book_info->promotion_domain = 'leyuee.com';
+            if(stripos($this->book_info->promotion_domain, $domain) === false){
+                return response()->error('WAP_DOMAIN_NOT_MATCH', [
+                    'url' => $this->getCorrespondBookUrl()
+                ]);
+            }
+        }
         //图书域名,book_configs表的promotion_domain 要跟当前的主机名匹配 在强关章节后3章
         //图书域名,book_configs表的promotion_domain 要跟当前的主机名匹配 在强关章节后3章
         if ($chapter->sequence > $subscribe_seq + 3 && $this->isVisitDomainEqualBookDomain($domain)) {
         if ($chapter->sequence > $subscribe_seq + 3 && $this->isVisitDomainEqualBookDomain($domain)) {
             if($special_user_log && $special_user_log == $this->uid){
             if($special_user_log && $special_user_log == $this->uid){