From 7d757f1fe6eedc9735f039c9000b14618a58baf8 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Thu, 10 Apr 2025 16:49:24 +0800 Subject: [PATCH] feat : chef name --- app/Listener/FirstRegistrationListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();