Ken 3 dni temu
rodzic
commit
5357fcbaa0
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      app/Services/PhoneCodeService.php

+ 1 - 4
app/Services/PhoneCodeService.php

@@ -39,10 +39,7 @@ class PhoneCodeService extends BaseService
      */
     public static function verify($phone, $code, $memberId, $visitorId): void
     {
-        $search = [
-            'phone' => $phone,
-            'code' => $code,
-        ];
+        $search = ['phone' => $phone, 'code' => $code];
         $phoneCode = static::$MODEL::where(static::getWhere($search))->first();
         if (!$phoneCode) throw new Exception("验证码错误", HttpStatus::CUSTOM_ERROR);
         $time = time();