From d005d38e8fde902f80779bbea053685f52608293 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 29 十一月 2024 19:16:02 +0800
Subject: [PATCH] 10162 后台优化(修复新增充值用户充值统计错误;修复首充用户留存计算错误;)
---
serverrep/keeplogin.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/serverrep/keeplogin.php b/serverrep/keeplogin.php
index 1b04650..0e53fb4 100644
--- a/serverrep/keeplogin.php
+++ b/serverrep/keeplogin.php
@@ -127,7 +127,7 @@
$firstYMDTime = strtotime($firstYMD);
$firstCount = 0;
foreach ($dayList as $day) {
- $statYMD = date("Y-m-d", strtotime("+" . $day . " days", $firstYMDTime));
+ $statYMD = date("Y-m-d", strtotime("+" . ($day - 1) . " days", $firstYMDTime));
if ($day == 1) {
$statInfo = $statYMDInfo[$firstYMD] ? $statYMDInfo[$firstYMD] : array();
$firstCount = $statInfo["keepCount"] ? $statInfo["keepCount"] : 0;
--
Gitblit v1.8.0