更新
This commit is contained in:
parent
6fb5f9b5d7
commit
6ecda74f35
@ -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 [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user