|
@@ -475,14 +475,14 @@ class WelcomeController extends BaseController
|
|
|
(time() - strtotime($user->created_at)) >= 86400 * 2
|
|
|
) {
|
|
|
$activity_img = isset($activity_setting['wap_bottom_img']) ? $activity_setting['wap_bottom_img'] : '';
|
|
|
- /*if (in_array($this->distribution_channel_id, [123, 211, 146, 155, 255, 256, 691, 722, 4364, 4427, 695, 4174, 4025, 4593, 4426, 4889, 4891, 4742, 4053, 4334, 4487, 5611, 6122, 6123, 6124, 8, 5, 160, 4236, 4237, 4241, 273, 148, 266, 202, 271])){
|
|
|
+ //if (in_array($this->distribution_channel_id, [123, 211, 146, 155, 255, 256, 691, 722, 4364, 4427, 695, 4174, 4025, 4593, 4426, 4889, 4891, 4742, 4053, 4334, 4487, 5611, 6122, 6123, 6124, 8, 5, 160, 4236, 4237, 4241, 273, 148, 266, 202, 271])){
|
|
|
$activity_pool = [
|
|
|
- 'https://cdn-novel.iycdm.com/h5/activity-2019-06-05/reader-banner.jpg',
|
|
|
- 'https://cdn-novel.iycdm.com/h5/activity-2019-06-05/reader-banner2.jpg',
|
|
|
- 'https://cdn-novel.iycdm.com/h5/activity-2019-06-05/reader-banner3.jpg'
|
|
|
+ 'https://cdn-novel.iycdm.com/h5/activity-2019-09-25/reader-banner-1.jpg',
|
|
|
+ 'https://cdn-novel.iycdm.com/h5/activity-2019-09-25/reader-banner-2.jpg',
|
|
|
+ 'https://cdn-novel.iycdm.com/h5/activity-2019-09-25/reader-banner-3.jpg'
|
|
|
];
|
|
|
$activity_img = collect($activity_pool)->random();
|
|
|
- }*/
|
|
|
+ //}
|
|
|
$url = $h5_scheme . '://' . _domain() . $activity_info->activity_page . '&fromtype=reader';
|
|
|
$activity_title = isset($activity_setting['activity_title']) ? $activity_setting['activity_title'] : '';
|
|
|
$status = ActivitySwitchService::isShowInPage($activity_id, $this->distribution_channel_id);
|
|
@@ -2162,11 +2162,12 @@ class WelcomeController extends BaseController
|
|
|
}
|
|
|
private function guidePersonalAccountV2(){
|
|
|
//内部站点导粉
|
|
|
- list($inner_sites,$year_qrcode,$month_qrcode,$out_qrcode) = redisEnvMulti(
|
|
|
+ list($inner_sites,$year_qrcode,$month_qrcode,$out_qrcode,$active_qrcode) = redisEnvMulti(
|
|
|
'GUIDE_PERSONAL_ACCOUNT_SITES',
|
|
|
'ACTIVE_YEAR_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE',
|
|
|
'ACTIVE_MONTH_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE',
|
|
|
- 'OUT_ACTIVE_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE'
|
|
|
+ 'OUT_ACTIVE_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE',
|
|
|
+ 'ACTIVE_GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE'
|
|
|
);
|
|
|
//if(in_array($thy))
|
|
|
if ($inner_sites && in_array($this->distribution_channel_id, explode(',', $inner_sites))) {
|
|
@@ -2190,7 +2191,10 @@ class WelcomeController extends BaseController
|
|
|
//包月
|
|
|
return ['title' => '包月VIP专属爆款小说书单>>', 'link' => '/guidestremv2?group=ACTIVE_MONTH&fee=500'];
|
|
|
}
|
|
|
- return ['title' => '您有500书币待领取>>', 'link' => '/guidestrem?uid=' . $this->uid . '&fee=500'];
|
|
|
+ if($active_qrcode){
|
|
|
+ return ['title' => '您有500书币待领取>>', 'link' => '/guidestrem?uid=' . $this->uid . '&fee=500'];
|
|
|
+ }
|
|
|
+ return '';
|
|
|
}
|
|
|
//外站导粉
|
|
|
if($out_qrcode && Redis::SISMEMBER('crm:out_channel_sites', $this->distribution_channel_id)){
|