From d3438ddf096e4bfa8ede8e69fbc65e84dcb50733 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Wed, 22 Mar 2023 09:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9B=E9=80=9B=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=8F=91=E5=B8=83=E4=B8=AD=E9=97=B4=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/CommunityAddress.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/listener/CommunityAddress.php b/app/listener/CommunityAddress.php index b794b394..be765cb7 100644 --- a/app/listener/CommunityAddress.php +++ b/app/listener/CommunityAddress.php @@ -15,8 +15,9 @@ class CommunityAddress */ public function handle($event) { - $finds = Db::name('nk_user')->where('user_id', $event['uid'])->find(); - $find = Db::connect('nongke')->table('fa_szxc_information_useraddress')->where('user_id', $finds['n_user_id'])->find(); + // $finds = Db::name('nk_user')->where('user_id', $event['uid'])->find(); + $find = Db::connect('nongke')->table('fa_szxc_information_useraddress')->where('user_id', $event['uid'])->find(); + if ($find ) { $data = [ 'user_id' => $event['uid'],