diff --git a/app/store/model/dealer/Apply.php b/app/store/model/dealer/Apply.php index 9366d699..0d7950f0 100644 --- a/app/store/model/dealer/Apply.php +++ b/app/store/model/dealer/Apply.php @@ -99,6 +99,9 @@ class Apply extends ApplyModel $info = $info->toArray(); if ($info['user_type'] == UserTypeEnum::NORMAL) { $up['user_type'] = UserTypeEnum::DEALER; + if ($info['effective_time']) { + $up['effective_time'] = null; + } $current_date = date('Y-m-d'); // 获取当前日期 $up['fx_effective_time'] = date('Y-m-d', strtotime('+1 year', strtotime($current_date))); $userModel->where(['user_id' => $info['user_id']])->save($up);