From 50dd27fc21d22e64d53f30f2f6dee7a9875ddb87 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 29 十一月 2024 18:01:40 +0800
Subject: [PATCH] 10162 后台优化(全服ltv报表优化:未到的天不显示ltv)
---
serverrep/ltv.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/serverrep/ltv.php b/serverrep/ltv.php
index 6c7fedd..8b49c30 100644
--- a/serverrep/ltv.php
+++ b/serverrep/ltv.php
@@ -90,6 +90,7 @@
echo "<th align='center' width='70'>鎬籐TV(澶�)</th>";
echo "<th align='center' width='70'>鎬诲厖鍊�</th>";
echo "</tr></thead>";
+ $curYMD = date("Y-m-d");
$curDate = new DateTime();
foreach ($fistLoginReportArray as $firstYMD => $statYMDInfo) {
echo "<tr class='trc'>";
@@ -112,7 +113,7 @@
} else {
$dayLTV += $payTotal;
}
- if ($dayLTV == 0 || $firstCount == 0) {
+ if ($dayLTV == 0 || $firstCount == 0 || $statYMD > $curYMD) {
$text = "";
} else {
$ltv = $dayLTV / $firstCount;
--
Gitblit v1.8.0