|
|
@@ -24,12 +24,12 @@ class TreeController
|
|
|
}
|
|
|
$item['children_num'] = count($children);
|
|
|
});
|
|
|
- return app('json')->success('ok', $points);
|
|
|
+ return app('json')->success('ok', compact('points'));
|
|
|
}
|
|
|
|
|
|
public function pointChildren($id, Request $request)
|
|
|
{
|
|
|
$children = TreeRecommend::with('user')->where('parent_id', $id)->order('way', 'asc')->select();
|
|
|
- return app('json')->success('ok', $children);
|
|
|
+ return app('json')->success('ok', compact('children'));
|
|
|
}
|
|
|
}
|