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; } }