Exemplo n.º 1
0
 /**
  * banner点击统计
  * @param $stationid
  * @return $data
  */
 public function pagehitCount($page, $pagesize, $stationid)
 {
     $db = new Psys_StationRule();
     $data = $db->PagehitInfo($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;
 }