From 0d001bb982f3263aeeb9380f988e0b3206765f3f Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Mon, 7 Nov 2022 12:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/GetUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/GetUser.php b/app/Console/Commands/GetUser.php index 148ae8a..6f09740 100644 --- a/app/Console/Commands/GetUser.php +++ b/app/Console/Commands/GetUser.php @@ -44,7 +44,7 @@ public function handle() // $email_or_id = $this->argument('email_or_id'); - $user = User::where('email', $email_or_id)->orWhere('id', $email_or_id)->first(); + $user = User::where('email', $email_or_id)->orWhere('id', $email_or_id)->orWhere('name', $email_or_id)->first(); $transaction = new Transaction();