wanghousheng 10 months ago
parent d596f584dc
commit 6ce85ec423
  1. 5
      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)));
}
$userModel->where(['user_id' => $userInfo['user_id']])->save($up);
}
}
Loading…
Cancel
Save