Browse Source

轮播图 屏蔽书名

zhoulj 6 years ago
parent
commit
c01fb99c03
1 changed files with 9 additions and 1 deletions
  1. 9 1
      app/Http/Controllers/Wap/Web/WelcomeController.php

+ 9 - 1
app/Http/Controllers/Wap/Web/WelcomeController.php

@@ -106,6 +106,13 @@ class WelcomeController extends BaseController
         $hide_chapter_channels = explode(',', env('HIDE_CHAPTER_CONSUME_CHANNEL'));
         $is_hide_chapter_consume = in_array($this->distribution_channel_id, $hide_chapter_channels) ? 1 : 0;
         //广告
+        
+        // 屏蔽书名
+        $self_config = ChannelService::check_channel_account_priv($this->distribution_channel_id,'hide_book_name');
+        $hide_book_name = 0;
+        if(!empty($self_config)){
+        	$hide_book_name = 1;
+        }
 
         $options = json_encode([
             'distribution_channel_id' => (int)$this->distribution_channel_id,
@@ -136,7 +143,8 @@ class WelcomeController extends BaseController
             'ad_type' => '1',
             'is_show_ad_frame' => $is_show_ad_frame,
             'show_title_in_reader' => $show_title_in_reader,
-            'is_hide_chapter_consume' => $is_hide_chapter_consume
+            'is_hide_chapter_consume' => $is_hide_chapter_consume,
+        	'hide_book_name' => $hide_book_name
         ]);
         if ($this->uid == env('SPECIAL_USER_LOG', 2)) {
             myLog('special')->info('welcome --------------------------');