public function getChildCids($rid, &$cids) { global $_FANWE; $root_cate = $_FANWE['cache']['goods_category']['all'][$rid]; $cids[] = $rid; if (isset($root_cate['child'])) { foreach ($root_cate['child'] as $cid) { ShareService::getChildCids($cid, $cids); } } }