diff --git a/app/common/model/informationg/UserInformationg.php b/app/common/model/informationg/UserInformationg.php index 30237e243..5ec377ced 100644 --- a/app/common/model/informationg/UserInformationg.php +++ b/app/common/model/informationg/UserInformationg.php @@ -157,10 +157,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')->select(); - } else { - return []; - } + return Db::name('geo_brigade')->where('id', $this->brigade_id)->value('brigade_name'); + } }