|
@@ -106,7 +106,7 @@ class WelcomeController extends BaseController
|
|
}
|
|
}
|
|
//设置用户是否充值
|
|
//设置用户是否充值
|
|
$this->setIsPaid();
|
|
$this->setIsPaid();
|
|
- $this->setProperty($user->openid,$user->created_at);
|
|
|
|
|
|
+ $this->setProperty($user->openid);
|
|
$channel_activities_flag = $this->judgeChannelActivity($user);
|
|
$channel_activities_flag = $this->judgeChannelActivity($user);
|
|
//最近阅读页面 推荐
|
|
//最近阅读页面 推荐
|
|
if(isset($user->sex)){
|
|
if(isset($user->sex)){
|
|
@@ -195,7 +195,7 @@ class WelcomeController extends BaseController
|
|
}
|
|
}
|
|
|
|
|
|
//用户分割
|
|
//用户分割
|
|
- $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,
|
|
@@ -2226,17 +2226,9 @@ class WelcomeController extends BaseController
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private function setProperty($openid,$register){
|
|
|
|
|
|
+ private function setProperty($openid){
|
|
$property = UserDivisionCpcPropertyService::userLevelV2($openid);
|
|
$property = UserDivisionCpcPropertyService::userLevelV2($openid);
|
|
- if($property == 'none'){
|
|
|
|
- if(time() - strtotime($register) > 3*86400){
|
|
|
|
- $this->property = $property;
|
|
|
|
- }else{
|
|
|
|
- $this->property = 'unknown';
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- $this->property = $property;
|
|
|
|
- }
|
|
|
|
|
|
+ $this->property = $property;
|
|
}
|
|
}
|
|
|
|
|
|
//统计ua
|
|
//统计ua
|