优化代码

pull/423/MERGE
Karson 2023-06-09 14:41:04 +08:00
parent 67aa9df53a
commit 9b0db19326
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class UserGroup extends Model
{
$value = $value ? $value : $data['status'];
$list = $this->getStatusList();
return isset($list[$value]) ? $list[$value] : '';
return $list[$value] ?? '';
}
}

View File

@ -42,7 +42,7 @@ class UserRule extends Model
{
$value = $value ? $value : $data['status'];
$list = $this->getStatusList();
return isset($list[$value]) ? $list[$value] : '';
return $list[$value] ?? '';
}
public static function getTreeList($selected = [])