/** * 导航点击统计 * @param $stationid * @return $data */ public function navhitCount($page, $pagesize, $stationid) { $db = new Psys_StationRule(); $data = $db->NavhitInfo($page, $pagesize, $stationid); $data = $data['allrow']; foreach ($data as $k => &$v) { $detail = explode(',', $v['postids']); foreach ($detail as $m => $n) { $tep = explode('/', $n); if (isset($tep[1])) { $v[$tep[0]] = $tep[1]; } } unset($v['postids']); } return $data; }