From 6ce85ec423ce40f24ba997967ad50fcc98bf1dd4 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Mon, 25 Mar 2024 23:10:59 +0800 Subject: [PATCH] 1 --- app/api/service/identity/PaySuccess.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/service/identity/PaySuccess.php b/app/api/service/identity/PaySuccess.php index 2f71b9d1..5f005455 100644 --- a/app/api/service/identity/PaySuccess.php +++ b/app/api/service/identity/PaySuccess.php @@ -373,6 +373,7 @@ class PaySuccess extends BaseService if (!empty($userInfo['effective_time']) && strtotime($userInfo['effective_time']) > strtotime(date('Y-m-d'))) { $time = $userInfo['effective_time']; } + $up['effective_time'] = date("Y-m-d", strtotime("+{$orderInfo['month']} months", strtotime($time))); } } else { $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'))) { $time = $userInfo['fx_effective_time']; } - } if (!User::isDealerUser($userInfo['user_id'])) { // 新增分销商用户 @@ -393,9 +393,8 @@ class PaySuccess extends BaseService '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); - } } \ No newline at end of file