From bf727c51cf2c3ccbfddd6ac0ec56d8c7255ae65f Mon Sep 17 00:00:00 2001 From: li kesong Date: Thu, 31 Mar 2022 23:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/LanzuFinancialRecord.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Admin/Controllers/LanzuFinancialRecord.php b/app/Admin/Controllers/LanzuFinancialRecord.php index f0dc319..8f858a4 100644 --- a/app/Admin/Controllers/LanzuFinancialRecord.php +++ b/app/Admin/Controllers/LanzuFinancialRecord.php @@ -42,10 +42,10 @@ class LanzuFinancialRecord extends AdminController $grid->user_id('用户')->display(function () { if ($this->user_type == 1) { - $name = ImsCjdcUser::find($this->user_id)->name; + $name = ImsCjdcUser::find($this->user_id)->name ?? ''; } else { if ($this->user_id){ - $name = AdminUsers::find($this->user_id)->name; + $name = AdminUsers::find($this->user_id)->name ?? ''; }else{ $name = '数据错误'; } @@ -84,4 +84,4 @@ class LanzuFinancialRecord extends AdminController $form->datetime('created_at'); }); } -} +} \ No newline at end of file