改进 获取用户

This commit is contained in:
iVampireSP.com 2022-11-07 12:11:17 +08:00
parent dea5ddd271
commit 0d001bb982
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

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