wanghousheng 8 months ago
parent 0692f0e2ad
commit d596f584dc
  1. 7
      app/api/service/identity/PaySuccess.php

@ -379,8 +379,8 @@ class PaySuccess extends BaseService
//已经是分销商
if ($userType == UserTypeEnum::DEALER) {
//是否到期
if (!empty($userInfo['effective_time']) && strtotime($userInfo['effective_time']) > strtotime(date('Y-m-d'))) {
$time = $userInfo['effective_time'];
if (!empty($userInfo['fx_effective_time']) && strtotime($userInfo['fx_effective_time']) > strtotime(date('Y-m-d'))) {
$time = $userInfo['fx_effective_time'];
}
}
@ -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['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);
}

Loading…
Cancel
Save