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

@ -379,10 +379,10 @@ class PaySuccess extends BaseService
//已经是分销商 //已经是分销商
if ($userType == UserTypeEnum::DEALER) { if ($userType == UserTypeEnum::DEALER) {
//是否到期 //是否到期
if (!empty($userInfo['effective_time']) && strtotime($userInfo['effective_time']) > strtotime(date('Y-m-d'))) { if (!empty($userInfo['fx_effective_time']) && strtotime($userInfo['fx_effective_time']) > strtotime(date('Y-m-d'))) {
$time = $userInfo['effective_time']; $time = $userInfo['fx_effective_time'];
} }
} }
if (!User::isDealerUser($userInfo['user_id'])) { if (!User::isDealerUser($userInfo['user_id'])) {
// 新增分销商用户 // 新增分销商用户
@ -393,9 +393,8 @@ class PaySuccess extends BaseService
'mobile' => $mobile, '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); $userModel->where(['user_id' => $userInfo['user_id']])->save($up);
} }

Loading…
Cancel
Save