给data组装二级
// 查询菜单表的一级数据
$data = Db::table('tp_menus')->where([
'module'=>'admin',
'fid' =>0
])->select();
foreach($data as $k => $v){
// 循环一级数据 查询二级数据
$erji = Db::table('tp_menus')->where([
'module'=>'admin',
'fid' =>$v['id']
])->select();
$data[$k]['erji'] = $erji;
}