colly_wyx
2018-04-28 c315a791545733391c15e42bc747e34293d36a99
application/modules/Public/controllers/Data.php
@@ -10,7 +10,8 @@
       */
      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)){
@@ -31,6 +32,15 @@
         die();
      }
      public function HourlyAction(){
         $task_service = new Service_Task();
         //$day = $this->get('day', date('Y-m-d'));
         $task_service->summary();
         die();
      }
   }