From a45c227e65a4c9f5f816c62aa9225b4ef2395516 Mon Sep 17 00:00:00 2001 From: yangduo Date: Wed, 15 Jan 2025 11:40:38 +0800 Subject: [PATCH] adjust --- webapp/controller/RechargeController.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 72259f9..62047ab 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -782,6 +782,7 @@ class RechargeController foreach ($dailypurchase as $key => $val) { if ($val['id'] == 10 && $val['time'] > $daysecs) { $packtime = $val['time']; + break; } } @@ -813,6 +814,12 @@ class RechargeController } } } + + foreach ($dailypurchase as $key => $val) { + if ($val['time'] < $daysecs) { + unset($dailypurchase['$key']); + } + } } }