From 8726fcec1bc80b2edf8bbca3e2e9ec2d5b60f824 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Wed, 09 May 2018 15:42:02 +0800
Subject: [PATCH] bug
---
application/modules/Public/controllers/Data.php | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/application/modules/Public/controllers/Data.php b/application/modules/Public/controllers/Data.php
index 2a38066..05f1968 100644
--- a/application/modules/Public/controllers/Data.php
+++ b/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();
+
+ }
+
}
\ No newline at end of file
--
Gitblit v1.8.0