public static function getParent($list, $id)
{
if (!is_array($list)) {
return [];
}
$temp = [];
foreach ($list as $v) {
$temp[$v[self::$config['id']]] = $v;
}
$parentid = $temp[$id][self::$config['pid']];
return $temp[$parentid];
}