|
@@ -45,6 +45,7 @@ class WelcomeController extends BaseController
|
|
if ($url) {
|
|
if ($url) {
|
|
return redirect()->to($url);
|
|
return redirect()->to($url);
|
|
}
|
|
}
|
|
|
|
+ $banners = [];
|
|
|
|
|
|
$title = $this->getSiteTitle($request);
|
|
$title = $this->getSiteTitle($request);
|
|
|
|
|
|
@@ -149,13 +150,35 @@ class WelcomeController extends BaseController
|
|
'appad_banner'=>'',
|
|
'appad_banner'=>'',
|
|
'appad_url'=>''
|
|
'appad_url'=>''
|
|
];
|
|
];
|
|
-
|
|
+
|
|
- $share_switch = 0;
|
|
|
|
- $share_switch = ($this->appad())?1:0;
|
|
|
|
|
|
|
|
$outstanding_year_order = $this->outstandingYearOrder();
|
|
$outstanding_year_order = $this->outstandingYearOrder();
|
|
$pdd_ad = $this->pddAd();
|
|
$pdd_ad = $this->pddAd();
|
|
|
|
|
|
|
|
+
|
|
|
|
+ if($is_show_activity)
|
|
|
|
+ {
|
|
|
|
+ $banners[] = [
|
|
|
|
+ 'img'=>$activity_img,
|
|
|
|
+ 'jump_url'=>$url
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if($pdd_ad)
|
|
|
|
+ {
|
|
|
|
+ $pdd_ads = Redis::get('pdd_ads');
|
|
|
|
+ if($pdd_ads)
|
|
|
|
+ {
|
|
|
|
+ foreach (json_decode($pdd_ads,true) as $_ad)
|
|
|
|
+ {
|
|
|
|
+ $banners[] = [
|
|
|
|
+ 'img'=>$_ad['img'],
|
|
|
|
+ 'jump_url'=>$_ad['jump_url']
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
$this->userPproperty($user->openid);
|
|
$this->userPproperty($user->openid);
|
|
$options = json_encode([
|
|
$options = json_encode([
|
|
@@ -196,10 +219,12 @@ class WelcomeController extends BaseController
|
|
'appad_url'=>$add_ad_status['appad_url'],
|
|
'appad_url'=>$add_ad_status['appad_url'],
|
|
'outstanding_year_order'=>$outstanding_year_order,
|
|
'outstanding_year_order'=>$outstanding_year_order,
|
|
'share_domain'=>env('share_domain_url'),
|
|
'share_domain'=>env('share_domain_url'),
|
|
- 'share_switch'=>$share_switch,
|
|
+ 'share_switch'=>0,
|
|
'pdd_ad'=>$pdd_ad,
|
|
'pdd_ad'=>$pdd_ad,
|
|
'special_pay_template'=>$this->isMiWan(),
|
|
'special_pay_template'=>$this->isMiWan(),
|
|
'crm'=>$crm,
|
|
'crm'=>$crm,
|
|
|
|
+ 'self_pa_ad_switch'=>$adTargetId && $pdd_ad ? 1 : 0,
|
|
|
|
+ 'banners'=>$banners,
|
|
'guidepersonalaccount'=>$this->guidePersonalAccount(),
|
|
'guidepersonalaccount'=>$this->guidePersonalAccount(),
|
|
'cpc_channel'=>$cpc_channel
|
|
'cpc_channel'=>$cpc_channel
|
|
]);
|
|
]);
|
|
@@ -2139,4 +2164,5 @@ class WelcomeController extends BaseController
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|