From 27427d388360416f5ca4b3156482fa64a50dc107 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Tue, 16 Jul 2024 19:20:27 +0800 Subject: [PATCH] 1 --- app/store/model/dealer/Apply.php | 3 +++ 1 file changed, 3 insertions(+) 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);