From 6ecda74f350b250630ffcbd07564707d444152cc Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 9 Aug 2023 15:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/informationg/UserInformationg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/model/informationg/UserInformationg.php b/app/common/model/informationg/UserInformationg.php index e6f4dc0ed..30237e243 100644 --- a/app/common/model/informationg/UserInformationg.php +++ b/app/common/model/informationg/UserInformationg.php @@ -158,7 +158,7 @@ class UserInformationg extends BaseModel public function getBrigadeNameAttr($value) { if ($this->brigade_id) { - return Db::name('geo_brigade')->where('id', 'in', explode(',', $this->brigade_id))->field('brigade_name')->find(); + return Db::name('geo_brigade')->where('id', 'in', explode(',', $this->brigade_id))->field('brigade_name')->select(); } else { return []; }