|
@@ -45,6 +45,8 @@ class WelcomeController extends BaseController
|
|
|
|
|
|
private $user = null;
|
|
|
|
|
|
+ private $activity_status = 0;
|
|
|
+
|
|
|
/**
|
|
|
* 首页
|
|
|
*/
|
|
@@ -63,6 +65,7 @@ class WelcomeController extends BaseController
|
|
|
$activity_options = $this->activityOptions();
|
|
|
$url = $activity_options['url'];
|
|
|
$is_show_activity = $activity_options['is_show_activity'];
|
|
|
+ $this->activity_status = $is_show_activity;
|
|
|
$activity_title = $activity_options['activity_title'];
|
|
|
$bottom_show_type = $activity_options['bottom_show_type'];
|
|
|
$activity_img = $activity_options['activity_img'];
|
|
@@ -2171,6 +2174,10 @@ class WelcomeController extends BaseController
|
|
|
'OUT_ACTIVE_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE',
|
|
|
'ACTIVE_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE'
|
|
|
);
|
|
|
+ $banner = '';
|
|
|
+ if(!$this->activity_status){
|
|
|
+ $banner = 'https://cdn-novel.iycdm.com/crm/guide/reader-banner.jpg';
|
|
|
+ }
|
|
|
//if(in_array($thy))
|
|
|
if ($inner_sites && in_array($this->distribution_channel_id, explode(',', $inner_sites))) {
|
|
|
//1.包年包月用户
|
|
@@ -2187,14 +2194,14 @@ class WelcomeController extends BaseController
|
|
|
if(!$charge) return '';
|
|
|
if($year_qrcode && OrderService::isYearOrderUser($this->uid) ){
|
|
|
//包年
|
|
|
- return ['title' => '包年VIP专属爆款小说书单>>', 'link' => '/guidestremv2?group=ACTIVE_YEAR&fee=500','banner'=>'https://cdn-novel.iycdm.com/crm/guide/reader-banner.jpg'];
|
|
|
+ return ['title' => '包年VIP专属爆款小说书单>>', 'link' => '/guidestremv2?group=ACTIVE_YEAR&fee=500','banner'=>$banner];
|
|
|
}
|
|
|
if($month_qrcode && UserMonthService::isMonthOrderUser($this->uid) ){
|
|
|
//包月
|
|
|
- return ['title' => '包月VIP专属爆款小说书单>>', 'link' => '/guidestremv2?group=ACTIVE_MONTH&fee=500','banner'=>'https://cdn-novel.iycdm.com/crm/guide/reader-banner.jpg'];
|
|
|
+ return ['title' => '包月VIP专属爆款小说书单>>', 'link' => '/guidestremv2?group=ACTIVE_MONTH&fee=500','banner'=>$banner];
|
|
|
}
|
|
|
if($active_qrcode){
|
|
|
- return ['title' => '您有500书币待领取>>', 'link' => '/guidestrem?uid=' . $this->uid . '&fee=500','banner'=>'https://cdn-novel.iycdm.com/crm/guide/reader-banner.jpg'];
|
|
|
+ return ['title' => '您有500书币待领取>>', 'link' => '/guidestrem?uid=' . $this->uid . '&fee=500','banner'=>$banner];
|
|
|
}
|
|
|
return '';
|
|
|
}
|
|
@@ -2235,7 +2242,7 @@ class WelcomeController extends BaseController
|
|
|
return '';
|
|
|
}
|
|
|
Cookie::queue('is_force_out_guide', 1);
|
|
|
- return ['title' => '您有500书币待领取>>', 'link' => '/guidestrem?uid=' . $this->uid . '&fee=500','banner'=>'https://cdn-novel.iycdm.com/crm/guide/reader-banner.jpg'];
|
|
|
+ return ['title' => '您有500书币待领取>>', 'link' => '/guidestrem?uid=' . $this->uid . '&fee=500','banner'=>$banner];
|
|
|
}
|
|
|
//渠道自己导粉
|
|
|
$other_crm_config = Redis::hmget('channel:setting:' . $this->distribution_channel_id, ['crm_status', 'crm_link']);
|