From b0d97c42d17f47bad97b442216162374d8be11c0 Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Sun, 08 Apr 2018 09:54:53 +0800 Subject: [PATCH] 默认汇总时间设定为昨天 --- application/modules/Public/controllers/Data.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/application/modules/Public/controllers/Data.php b/application/modules/Public/controllers/Data.php index 2a38066..3894de1 100644 --- a/application/modules/Public/controllers/Data.php +++ b/application/modules/Public/controllers/Data.php @@ -10,7 +10,7 @@ */ 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"))); $dailyLog_service = new Service_DailyLog(); if(strtotime($day) <= strtotime(date('Y-m-d', time()))){ if(!$dailyLog_service->isSummary($day)){ -- Gitblit v1.8.0