|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public function DailyAction(){ | 
|---|
|  |  |  | $daily_service = new Service_Daily(); | 
|---|
|  |  |  | $day = $this->get('day', date('Y-m-d')); | 
|---|
|  |  |  | $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')); | 
|---|
|  |  |  | echo $day; | 
|---|
|  |  |  | if(!$data_three_hourly_service->isSummary($day)){ | 
|---|
|  |  |  | if($data_three_hourly_service->summary($day)){ | 
|---|
|  |  |  | echo "汇总成功"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else{ | 
|---|
|  |  |  | echo "汇总失败"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else{ | 
|---|
|  |  |  | echo '当前时间已经汇总过了'; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | die(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|