|
|
@ -99,6 +99,9 @@ class Apply extends ApplyModel |
|
|
|
$info = $info->toArray(); |
|
|
|
$info = $info->toArray(); |
|
|
|
if ($info['user_type'] == UserTypeEnum::NORMAL) { |
|
|
|
if ($info['user_type'] == UserTypeEnum::NORMAL) { |
|
|
|
$up['user_type'] = UserTypeEnum::DEALER; |
|
|
|
$up['user_type'] = UserTypeEnum::DEALER; |
|
|
|
|
|
|
|
if ($info['effective_time']) { |
|
|
|
|
|
|
|
$up['effective_time'] = null; |
|
|
|
|
|
|
|
} |
|
|
|
$current_date = date('Y-m-d'); // 获取当前日期 |
|
|
|
$current_date = date('Y-m-d'); // 获取当前日期 |
|
|
|
$up['fx_effective_time'] = date('Y-m-d', strtotime('+1 year', strtotime($current_date))); |
|
|
|
$up['fx_effective_time'] = date('Y-m-d', strtotime('+1 year', strtotime($current_date))); |
|
|
|
$userModel->where(['user_id' => $info['user_id']])->save($up); |
|
|
|
$userModel->where(['user_id' => $info['user_id']])->save($up); |
|
|
|