From c6a52282d5c4df57aff4f3f395d36b46fd2e7280 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 24 Oct 2019 18:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Repository/SpendRepository.class.php | 2 +- Application/Home/View/default/Query/arpu.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Application/Base/Repository/SpendRepository.class.php b/Application/Base/Repository/SpendRepository.class.php index 42c146772..06ef2cb1d 100644 --- a/Application/Base/Repository/SpendRepository.class.php +++ b/Application/Base/Repository/SpendRepository.class.php @@ -200,7 +200,7 @@ class SpendRepository { $records = []; foreach ($dayList as $day) { - $time = strtotime($day); + $time = strtotime($day) + 24 * 3600; $conditions['pay_time'] = ['elt', $time]; $result = M('spend', 'tab_')->field('count(DISTINCT user_id) as count')->where($conditions)->find(); $records[$day] = $result['count']; diff --git a/Application/Home/View/default/Query/arpu.html b/Application/Home/View/default/Query/arpu.html index 2b878873a..d3217ac9c 100644 --- a/Application/Home/View/default/Query/arpu.html +++ b/Application/Home/View/default/Query/arpu.html @@ -135,6 +135,9 @@