diff --git a/app/Listener/FirstRegistrationListener.php b/app/Listener/FirstRegistrationListener.php index 116391a..c8997ba 100644 --- a/app/Listener/FirstRegistrationListener.php +++ b/app/Listener/FirstRegistrationListener.php @@ -78,7 +78,7 @@ class FirstRegistrationListener implements ListenerInterface $userId = $event->userId; //todo 此处能做性能优化 异步执行 (异步执行要考虑事务) - $mobile = $this->userModel->where('user_id', $userId)->value('mobile') ?? ''; + $mobile = $this->userModel->where('id', $userId)->value('mobile') ?? ''; if ($mobile == '') return; $poolFlag = $this->phonePoolModel->where('phone', $mobile)->first();