Beispiel #1
0
 /**
  * web 游戏、应用详情统计
  * @param $stationid
  * @return $data
  */
 public function webAppDetail($date, $stationid, $select)
 {
     $db = new Psys_StationRule();
     $select = $select == 1 ? 'game' : 'app';
     $data = $db->webAppDetail($date, $stationid, $select);
     foreach ($data['app'] as $k => &$v) {
         $v['detail'] = $this->GetAppName($v['detail']);
         $detail = explode(',', $v['postids']);
         foreach ($detail as $m => $n) {
             $tep = explode('/', $n);
             $v[$tep[0]] = $tep[1];
         }
         unset($v['postids']);
     }
     foreach ($data['app'] as &$v) {
         $v += array('alert' => '0', 'down' => '0');
     }
     return $data;
 }