| | |
| | | public function DailyAction(){ |
| | | $daily_service = new Service_Daily(); |
| | | $day = $this->get('day', date('Y-m-d', strtotime("-1 day"))); |
| | | echo $day; |
| | | $dailyLog_service = new Service_DailyLog(); |
| | | if(strtotime($day) <= strtotime(date('Y-m-d', time()))){ |
| | | if(!$dailyLog_service->isSummary($day)){ |
| | |
| | | die(); |
| | | } |
| | | |
| | | |
| | | 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 '当前时间已经汇总过了'; |
| | | } |
| | | |
| | | die(); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |