|
@@ -130,6 +130,11 @@ class WelcomeController extends BaseController
|
|
|
$cpc_channel = '';
|
|
|
}
|
|
|
}
|
|
|
+ //目前推喜阅 自有广告曝光中低净值
|
|
|
+ $self_pa_ad_switch = 0;
|
|
|
+ if(in_array($this->property,['none','low', 'medium']) && $this->isPddAdSites()) $self_pa_ad_switch = 1;
|
|
|
+
|
|
|
+
|
|
|
//广告frame
|
|
|
$is_show_ad_frame_setting = env('IS_SHOW_AD_FRAME_SETTING', '123');
|
|
|
$is_show_ad_frame = false;
|
|
@@ -240,7 +245,7 @@ class WelcomeController extends BaseController
|
|
|
'pdd_ad'=>$pdd_ad,
|
|
|
'special_pay_template'=>$this->isMiWan(), //米玩站点特殊充值页面
|
|
|
'crm'=>$crm,
|
|
|
- 'self_pa_ad_switch'=>$adTargetId && $pdd_ad ? 1 : 0,//自有平台广告开关
|
|
|
+ 'self_pa_ad_switch'=>$self_pa_ad_switch,//自有平台广告开关
|
|
|
'banners'=>$banners,
|
|
|
'guidepersonalaccount'=>$this->guidePersonalAccount($user->openid),
|
|
|
'cpc_channel'=>$cpc_channel,
|
|
@@ -622,7 +627,7 @@ class WelcomeController extends BaseController
|
|
|
}
|
|
|
|
|
|
private function pddAd(){
|
|
|
- if(in_array($this->distribution_channel_id,[2,123,146,155,211,256,691,695,722,4025,4053,4174,4237,4241,4334,4364,4426,4427,4487,4593,4889,4891,5611])){
|
|
|
+ if($this->isPddAdSites()){
|
|
|
return [
|
|
|
'banner'=>'https://cdn-novel.iycdm.com/h5/20190531/banner.jpg',
|
|
|
'url'=>'https://m.ycsd.cn/reader/9F69C5F384552E71/663249E009CA5AC0?u=13002705&isLogin=1'
|
|
@@ -631,6 +636,11 @@ class WelcomeController extends BaseController
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
+ private function isPddAdSites()
|
|
|
+ {
|
|
|
+ return in_array($this->distribution_channel_id,[2,123,146,155,211,256,691,695,722,4025,4053,4174,4237,4241,4334,4364,4426,4427,4487,4593,4889,4891,5611]);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private function isMiWan(){
|
|
|
$miwan_channel_ids = redisEnv('MIWAN_CHANNEL_ID');
|