pull/5/head
wanghousheng 4 months ago
parent 2d7ca2b154
commit 27427d3883
  1. 3
      app/store/model/dealer/Apply.php

@ -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);

Loading…
Cancel
Save