From cdadfa42e9bc0353ec94f7ef7d1c86bfd7599e49 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 8 Sep 2023 15:56:17 +0800 Subject: [PATCH] add --- app/adminapi/lists/CompanyLists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/adminapi/lists/CompanyLists.php b/app/adminapi/lists/CompanyLists.php index 72c75f186..5cffae93e 100644 --- a/app/adminapi/lists/CompanyLists.php +++ b/app/adminapi/lists/CompanyLists.php @@ -106,9 +106,9 @@ class CompanyLists extends BaseAdminDataLists implements ListsSearchInterface }) ->withAttr('notes',function($value,$data){ if ($data['is_authentication'] == 1) { - return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 2)->order(['id'=>desc])->limit(1)->value('fail_reason'); + return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 2)->order(['id'=>'desc'])->limit(1)->value('fail_reason'); } else { - return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 1)->value('fail_reason'); + return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 1)->order(['id'=>'desc'])->limit(1)->value('fail_reason'); } })