|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public function ThreeHourlyAction(){ | 
|---|
|  |  |  | $data_three_hourly_service = new Service_DataThreeHourly(); | 
|---|
|  |  |  | $day = $this->get('day', date('Y-m-d')); | 
|---|
|  |  |  | $time_level = $this->get('time_level', 0); | 
|---|
|  |  |  | echo $day; | 
|---|
|  |  |  | if(!$data_three_hourly_service->isSummary($day, $time_level)){ | 
|---|
|  |  |  | if($data_three_hourly_service->summary($day, $time_level)){ | 
|---|
|  |  |  | echo "汇总成功"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else{ | 
|---|
|  |  |  | echo "汇总失败"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else{ | 
|---|
|  |  |  | echo '当前时间已经汇总过了'; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public function HourlyAction(){ | 
|---|
|  |  |  | $task_service = new Service_Task(); | 
|---|
|  |  |  | //$day = $this->get('day', date('Y-m-d')); | 
|---|
|  |  |  | $task_service->summary(); | 
|---|
|  |  |  | die(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|