/** * 广告PV统计图 */ public function graphadpvAction() { $date = reqstr('date') ? date('Y_m_d', strtotime(reqstr('date'))) : date('Y_m_d', strtotime('-1 day')); $nt = new Psys_StationModel(); $data['ad1'] = $nt->GraphAdPv($date, 1); $data['ad2'] = $nt->GraphAdPv($date, 2); return $data; }