|
@@ -193,9 +193,10 @@ class WelcomeController extends BaseController
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ $xiyue_info = $this->isXiyueUser();
|
|
|
|
|
|
//用户分割
|
|
//用户分割
|
|
- $this->userPproperty($user->openid);
|
|
|
|
|
|
+ $this->userPproperty();
|
|
$month_order_info = $this->monthOrderInfo($user->openid);
|
|
$month_order_info = $this->monthOrderInfo($user->openid);
|
|
$options = json_encode([
|
|
$options = json_encode([
|
|
'distribution_channel_id' => (int)$this->distribution_channel_id,
|
|
'distribution_channel_id' => (int)$this->distribution_channel_id,
|
|
@@ -243,7 +244,8 @@ class WelcomeController extends BaseController
|
|
'banners'=>$banners,
|
|
'banners'=>$banners,
|
|
'guidepersonalaccount'=>$this->guidePersonalAccount($user->openid),
|
|
'guidepersonalaccount'=>$this->guidePersonalAccount($user->openid),
|
|
'cpc_channel'=>$cpc_channel,
|
|
'cpc_channel'=>$cpc_channel,
|
|
- 'month_order_info'=>$month_order_info
|
|
|
|
|
|
+ 'month_order_info'=>$month_order_info,
|
|
|
|
+ 'xiyue_info'=>$xiyue_info
|
|
]);
|
|
]);
|
|
if ($this->uid == env('SPECIAL_USER_LOG', 2)) {
|
|
if ($this->uid == env('SPECIAL_USER_LOG', 2)) {
|
|
myLog('special')->info('welcome --------------------------');
|
|
myLog('special')->info('welcome --------------------------');
|
|
@@ -2253,6 +2255,20 @@ class WelcomeController extends BaseController
|
|
private function monthOrderInfo($openid){
|
|
private function monthOrderInfo($openid){
|
|
$property = $this->property;
|
|
$property = $this->property;
|
|
if (!$property) return '';
|
|
if (!$property) return '';
|
|
|
|
+ if(in_array($this->distribution_channel_id, explode(',', redisEnv('OPEN_ORDER_INNER_SITES')))){
|
|
|
|
+ $info = DataAnalysisSelectUserService::getByUidAndType($this->uid,'MONTH');
|
|
|
|
+ if($info){
|
|
|
|
+ if($info->attach == 'show'){
|
|
|
|
+ return [
|
|
|
|
+ 'price'=>'30元',
|
|
|
|
+ 'text' => '30元包月 全站万本精彩小说免费看',
|
|
|
|
+ 'link'=> generateMonthOrderUrl($this->uid)
|
|
|
|
+ //'link'=> '/rmonthpay'
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+ return [];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (in_array($this->distribution_channel_id, explode(',', redisEnv('OPEN_ORDER_INNER_SITES')))
|
|
if (in_array($this->distribution_channel_id, explode(',', redisEnv('OPEN_ORDER_INNER_SITES')))
|
|
&& in_array($property, ['none','low', 'medium'])
|
|
&& in_array($property, ['none','low', 'medium'])
|
|
) {
|
|
) {
|
|
@@ -2268,4 +2284,16 @@ class WelcomeController extends BaseController
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private function isXiyueUser(){
|
|
|
|
+ $result = DB::table('xiyue_zsy_users')->where('uid',$this->uid)->select('id')->first();
|
|
|
|
+ if($result){
|
|
|
|
+ return [
|
|
|
|
+ 'is_xiyue_user'=>1,
|
|
|
|
+ 'xiyue_index_page'=>'https://site5.leyuee.com',
|
|
|
|
+ 'xiyue_pay_page'=>'https://site5.leyuee.com'
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|