Ken 3 روز پیش
والد
کامیت
9d29b6b6da
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      app/Services/PhoneCodeService.php

+ 0 - 2
app/Services/PhoneCodeService.php

@@ -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;
         }