方便自己以后忘了再来查看
//$array 数据 $character是要消除的字段
public function dataHandle($array=[],$character=[]){
foreach ($array as $key=>$value){
foreach($character as $delete){
if(!is_array($value)&&$key==$delete){
unset($array[$key]);
}else{
if(!is_array($value)){
continue;
}else{
$array[$key]=$this->dataHandle($value,$character);
}
}
}
}
return $array;
}