public function BannerIndexAction() { $stationid = reqnum('stationid', 1); $date = reqstr('date', ''); //if(!$date){ // return array('code'=>0); //} $nt = new Psys_StationModel(); $list = $nt->BannerIndex($stationid, $date); return array('code' => 1, 'allrow' => $list); }