$tp = M("newstype");
foreach ($voList as $arr) {
$typeNameList = $tp->where("id='".$arr['tid']."'")->field('typename')->find();
$arr['typename'] =$typeNameList['typename'];
array_push($cache, $arr);
}
$voList=null;
$voList=$cache;
foreach ($voList as $arr) {
$typeNameList = $tp->where("id='".$arr['tid']."'")->field('typename')->find();
$arr['typename'] =$typeNameList['typename'];
array_push($cache, $arr);
}
$voList=null;
$voList=$cache;