mirror of https://gitee.com/karson/fastadmin.git
优化代码
parent
67aa9df53a
commit
9b0db19326
|
|
@ -28,7 +28,7 @@ class UserGroup extends Model
|
||||||
{
|
{
|
||||||
$value = $value ? $value : $data['status'];
|
$value = $value ? $value : $data['status'];
|
||||||
$list = $this->getStatusList();
|
$list = $this->getStatusList();
|
||||||
return isset($list[$value]) ? $list[$value] : '';
|
return $list[$value] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class UserRule extends Model
|
||||||
{
|
{
|
||||||
$value = $value ? $value : $data['status'];
|
$value = $value ? $value : $data['status'];
|
||||||
$list = $this->getStatusList();
|
$list = $this->getStatusList();
|
||||||
return isset($list[$value]) ? $list[$value] : '';
|
return $list[$value] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getTreeList($selected = [])
|
public static function getTreeList($selected = [])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue