|
|
|
@ -379,8 +379,8 @@ class PaySuccess extends BaseService |
|
|
|
|
//已经是分销商 |
|
|
|
|
if ($userType == UserTypeEnum::DEALER) { |
|
|
|
|
//是否到期 |
|
|
|
|
if (!empty($userInfo['effective_time']) && strtotime($userInfo['effective_time']) > strtotime(date('Y-m-d'))) { |
|
|
|
|
$time = $userInfo['effective_time']; |
|
|
|
|
if (!empty($userInfo['fx_effective_time']) && strtotime($userInfo['fx_effective_time']) > strtotime(date('Y-m-d'))) { |
|
|
|
|
$time = $userInfo['fx_effective_time']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -393,9 +393,8 @@ class PaySuccess extends BaseService |
|
|
|
|
'mobile' => $mobile, |
|
|
|
|
]); |
|
|
|
|
} |
|
|
|
|
$up['fx_effective_time'] = date("Y-m-d", strtotime("+{$orderInfo['month']} months", strtotime($time))); |
|
|
|
|
} |
|
|
|
|
$up['effective_time'] = date("Y-m-d", strtotime("+{$orderInfo['month']} months", strtotime($time))); |
|
|
|
|
$up['fx_effective_time'] = date("Y-m-d", strtotime("+{$orderInfo['month']} months", strtotime($time))); |
|
|
|
|
$userModel->where(['user_id' => $userInfo['user_id']])->save($up); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|