$cate_arrs = $run->category->find_fetch();
foreach($cate_arrs as $v){if($v['upid']==0){
$v['flist']=$run->category->find_fetch(array('upid'=>$v['cid']));
$parrs[]=$v;
}
} // hook kp_block_listeach_after.php
return array('ret'=>$ret,'parrs'=>$parrs);
标签:category,频道,遍历,parrs,ret,TWCMS,array,find,cate
From: https://www.cnblogs.com/maqianhan/p/17644092.html