|
|
@ -373,6 +373,7 @@ class PaySuccess extends BaseService |
|
|
|
if (!empty($userInfo['effective_time']) && strtotime($userInfo['effective_time']) > strtotime(date('Y-m-d'))) { |
|
|
|
if (!empty($userInfo['effective_time']) && strtotime($userInfo['effective_time']) > strtotime(date('Y-m-d'))) { |
|
|
|
$time = $userInfo['effective_time']; |
|
|
|
$time = $userInfo['effective_time']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$up['effective_time'] = date("Y-m-d", strtotime("+{$orderInfo['month']} months", strtotime($time))); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$up['user_type'] = UserTypeEnum::DEALER; |
|
|
|
$up['user_type'] = UserTypeEnum::DEALER; |
|
|
@ -382,7 +383,6 @@ class PaySuccess extends BaseService |
|
|
|
if (!empty($userInfo['fx_effective_time']) && strtotime($userInfo['fx_effective_time']) > strtotime(date('Y-m-d'))) { |
|
|
|
if (!empty($userInfo['fx_effective_time']) && strtotime($userInfo['fx_effective_time']) > strtotime(date('Y-m-d'))) { |
|
|
|
$time = $userInfo['fx_effective_time']; |
|
|
|
$time = $userInfo['fx_effective_time']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (!User::isDealerUser($userInfo['user_id'])) { |
|
|
|
if (!User::isDealerUser($userInfo['user_id'])) { |
|
|
|
// 新增分销商用户 |
|
|
|
// 新增分销商用户 |
|
|
@ -393,9 +393,8 @@ class PaySuccess extends BaseService |
|
|
|
'mobile' => $mobile, |
|
|
|
'mobile' => $mobile, |
|
|
|
]); |
|
|
|
]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$up['fx_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); |
|
|
|
$userModel->where(['user_id' => $userInfo['user_id']])->save($up); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |