コード例 #1
0
 /**
  * web App/game统计
  * @param $stationid
  * @return $data
  */
 public function webAppCount($stationid, $select, $page, $pagesize)
 {
     $db = new Psys_StationRule();
     $select = $select == 1 ? 'game' : 'app';
     $data = $db->webAppInfo($stationid, $select, $page, $pagesize);
     foreach ($data['allrows'] as $k => &$v) {
         $detail = explode(',', $v['postids']);
         foreach ($detail as $m => $n) {
             $tep = explode('/', $n);
             $v[$tep[0]] = $tep[1];
         }
         unset($v['postids']);
     }
     foreach ($data['allrows'] as &$v) {
         $v += array('date' => '0', 'click_banner' => '0', 'alert' => '0', 'down' => '0');
     }
     return $data;
 }