Commit 5f8c29e1 authored by 王源's avatar 王源 🎧

删除旧方法

parent 247b3b97
......@@ -340,27 +340,6 @@ if (!function_exists('list_go_tree')) {
}
}
if (!function_exists('format_tree')) {
/**
* 利用递归格式化每个节点
* @param array $array 代转化数组
* @param int $pid 起始节点
* @return array
*/
function format_tree(array $array = [], $pid = 0)
{
$result = [];
if (!isset($array[$pid])) {
return $result;
}
foreach ($array[$pid] as $item) {
$item['children'] = format_tree($array, $item['id']);
array_push($result, $item);
}
return $result;
}
}
if (!function_exists('flushAnnotationCache')) {
/**
* 刷新注解缓存,清楚注解缓存
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment