From 9100f8764f157c8aa22e836780612549f4db4a65 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 7 Aug 2023 18:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/application/common/logic/PassFlow.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/application/common/logic/PassFlow.php b/source/application/common/logic/PassFlow.php index 93fe402..0db6ada 100644 --- a/source/application/common/logic/PassFlow.php +++ b/source/application/common/logic/PassFlow.php @@ -183,7 +183,11 @@ class PassFlow } # 文化馆客流柱状图数据 foreach ($whgData as $whgRow) { - $date = date($date_str,strtotime($whgRow['create_time'])); // 各时间端进馆人数 + if ($date_str == 'H:00') { + $date = $whgRow['hour_time']; + } else { + $date = date($date_str,strtotime($whgRow['create_time'])); // 各时间端进馆人数 + } if (!isset($allTimeData[$date])) continue; $allTimeData[$date]['num'] += $whgRow['incount']; }