|
@@ -85,7 +85,11 @@ class WelcomeController extends BaseController
|
|
|
//最近阅读页面 推荐
|
|
|
$latest_read_rec_books = $this->latest_read_rec_books($channel,$user->sex);
|
|
|
//广告样本
|
|
|
- $adTargetId = $this->isUserInAdSample();
|
|
|
+ $ad_status = env('AD_STATUS',true);
|
|
|
+ $adTargetId = false;
|
|
|
+ if($ad_status){
|
|
|
+ $adTargetId = $this->isUserInAdSample();
|
|
|
+ }
|
|
|
//广告frame
|
|
|
$is_show_ad_frame_setting = env('IS_SHOW_AD_FRAME_SETTING','123');
|
|
|
$is_show_ad_frame = false;
|
|
@@ -100,6 +104,7 @@ 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;
|
|
|
+ //广告
|
|
|
|
|
|
$options = json_encode([
|
|
|
'distribution_channel_id' => (int)$this->distribution_channel_id,
|