|
|
@@ -44,7 +44,6 @@ class PhoneCodeService extends BaseService
|
|
|
if (!$phoneCode) throw new Exception("验证码错误", HttpStatus::CUSTOM_ERROR);
|
|
|
$time = time();
|
|
|
if ($phoneCode->ext < $time) throw new Exception("验证码过期", HttpStatus::CUSTOM_ERROR);
|
|
|
-
|
|
|
$user = UserService::findOne(['member_id' => $memberId]);
|
|
|
if (!$user) throw new Exception('用户不存在', HttpStatus::CUSTOM_ERROR);
|
|
|
$registerIp = request()->ip();
|
|
|
@@ -57,7 +56,6 @@ class PhoneCodeService extends BaseService
|
|
|
if (User::where('register_ip', $registerIp)->where('member_id', '!=', $memberId)->exists()) {
|
|
|
$user->status = 1;
|
|
|
}
|
|
|
-
|
|
|
if (User::where('visitor_id', $visitorId)->where('member_id', '!=', $memberId)->exists()) {
|
|
|
$user->status = 1;
|
|
|
}
|