public function getarruid2($id){
$info=Db('user')->select();
$array=$this->findChild2($info,$id);
$ids = array_column($array,'id');
$ids=implode(",",$ids);
return $ids;
}
//无极限分类--递归
public function findChild2($info, $pid=0, &$list=array()){
foreach($info as $k => $v){
if($v['invite_id'] == $pid){
$list[] = $v;
$this->findChild2($info, $v['id'], $list);
}
}
return $list;
}