|
|
@@ -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();
|