From 6456272eb735762e55ffdeea206ebeefe3b5b6d8 Mon Sep 17 00:00:00 2001 From: yangduo Date: Wed, 15 Jan 2025 17:01:58 +0800 Subject: [PATCH] fix --- webapp/controller/RechargeController.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 9cf831b..2396347 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -372,8 +372,8 @@ class RechargeController ':modify_time' => time(), ) ); - - if(!$ret) { + + if (!$ret) { phpcommon\sendError(ERR_INTERNAL + 1, '系统繁忙'); return; } @@ -863,11 +863,15 @@ class RechargeController } } + $daily = array(); foreach ($dailypurchase as $key => $val) { if ($val['time'] < $daysecs) { unset($dailypurchase[$key]); + } else { + array_push($daily, $val); } } + $dailypurchase = $daily; } }