This commit is contained in:
mkm 2023-08-09 15:09:29 +08:00
parent 15b0f7fa9f
commit d2d1a0ee06
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ class User extends BaseModel
public function getBrigadeNameAttr($value)
{
if($this->brigade){
return Db::name('geo_brigade')->where('id' ,'in' ,explode(',',$value))->field('brigade_name')->select()->toArray();
return Db::name('geo_brigade')->where('id' ,'in' ,explode(',',$this->brigade))->field('brigade_name')->select()->toArray();
}else{
return [];
}

@ -1 +1 @@
Subproject commit 1294ea49ff9ecc4532821f8798304816cbf8dd74
Subproject commit 9acc82cd23d807280ddd29df2117e7890094d049