1.提交缺失的东西
This commit is contained in:
@ -161,7 +161,7 @@ function is_https()
|
|||||||
* @param int $parent_id 此值请勿给参数
|
* @param int $parent_id 此值请勿给参数
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function linear_to_tree($data, $sub_key_name = 'sub', $id_name = 'id', $parent_id_name = 'pid', $parent_id = 0)
|
function linear_to_tree($data, $sub_key_name = 'children', $id_name = 'id', $parent_id_name = 'pid', $parent_id = 0)
|
||||||
{
|
{
|
||||||
$tree = [];
|
$tree = [];
|
||||||
foreach ($data as $row) {
|
foreach ($data as $row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user