|
@@ -2233,6 +2233,8 @@ class WelcomeController extends BaseController
|
|
|
//渠道自己导粉
|
|
|
$other_crm_config = Redis::hmget('channel:setting:' . $this->distribution_channel_id, ['crm_status', 'crm_link']);
|
|
|
if (empty($other_crm_config[0]) && empty($other_crm_config[1])) return '';
|
|
|
+ $get_info = UserBindHkWelfareService::isHasGet($this->uid);
|
|
|
+ if ($get_info) return '';
|
|
|
if($this->is_paid || $this->distribution_channel_id == 6687)
|
|
|
return ['title' => '点击领取200书币>>', 'link' => $other_crm_config[1]];
|
|
|
return '';
|
|
@@ -2367,7 +2369,14 @@ class WelcomeController extends BaseController
|
|
|
if (!$property) return '';
|
|
|
$month_info = UserMonthService::getOrderAndSignStatusByUid($this->uid);
|
|
|
if($month_info){
|
|
|
- if(in_array('MONTH',$month_info)){
|
|
|
+ return [
|
|
|
+ 'price' => '30元',
|
|
|
+ 'text' => '30元包月 全站万本精彩小说免费看',
|
|
|
+ 'link' => generateMonthOrderUrl($this->uid),
|
|
|
+ 'focus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/month_order_check.png',
|
|
|
+ 'unfocus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/month_order_1.png'
|
|
|
+ ];
|
|
|
+ /*if(in_array('MONTH',$month_info)){
|
|
|
return [
|
|
|
'price' => '30元',
|
|
|
'text' => '30元包月 全站万本精彩小说免费看',
|
|
@@ -2384,12 +2393,12 @@ class WelcomeController extends BaseController
|
|
|
'focus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/week-order-2.png',
|
|
|
'unfocus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/week-order-1.png'
|
|
|
];
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
if (in_array($this->distribution_channel_id, explode(',', redisEnv('OPEN_ORDER_INNER_SITES')))) {
|
|
|
$info = DataAnalysisSelectUserService::getByUidAndType($this->uid, 'MONTH_V2');
|
|
|
if ($info) {
|
|
|
- if ($info->attach == 'show') {
|
|
|
+ if ($info->attach == 'show' || $info->attach == 'week-show') {
|
|
|
return [
|
|
|
'price' => '30元',
|
|
|
'text' => '30元包月 全站万本精彩小说免费看',
|
|
@@ -2398,7 +2407,7 @@ class WelcomeController extends BaseController
|
|
|
'unfocus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/month_order_1.png'
|
|
|
];
|
|
|
}
|
|
|
- if ($info->attach == 'week-show') {
|
|
|
+ /*if ($info->attach == 'week-show') {
|
|
|
return [
|
|
|
'price' => '7元',
|
|
|
'text' => '7元包周 全站万本精彩小说免费看',
|
|
@@ -2406,7 +2415,7 @@ class WelcomeController extends BaseController
|
|
|
'focus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/week-order-2.png',
|
|
|
'unfocus_img'=>'https://cdn-novel.iycdm.com/h5/monthpay/week-order-1.png'
|
|
|
];
|
|
|
- }
|
|
|
+ }*/
|
|
|
return '';
|
|
|
}
|
|
|
}
|
|
@@ -2416,7 +2425,7 @@ class WelcomeController extends BaseController
|
|
|
if (!UserMonthService::isSignMonth($openid)) {
|
|
|
$start_time = redisEnv('MONTH_TEMPLATE_COMPARE_START_TIME', 0);
|
|
|
if (!$start_time || (strtotime($this->user->created_at) < $start_time)) {
|
|
|
- if ($property == 'none') {
|
|
|
+ if ($property == 'nonenone') {
|
|
|
return [
|
|
|
'price' => '7元',
|
|
|
'text' => '7元包周 全站万本精彩小说免费看',
|
|
@@ -2436,7 +2445,7 @@ class WelcomeController extends BaseController
|
|
|
}
|
|
|
$attach = $this->uid % 2 == 0 ? 'show' : 'hide';
|
|
|
if ($attach == 'hide') return '';
|
|
|
- if ($property == 'none') {
|
|
|
+ if ($property == 'nonenone') {
|
|
|
return [
|
|
|
'price' => '7元',
|
|
|
'text' => '7元包周 全站万本精彩小说免费看',
|