This commit is contained in:
yangduo 2025-01-15 17:01:58 +08:00
parent 109f7478d6
commit 6456272eb7

View File

@ -372,8 +372,8 @@ class RechargeController
':modify_time' => time(), ':modify_time' => time(),
) )
); );
if(!$ret) { if (!$ret) {
phpcommon\sendError(ERR_INTERNAL + 1, '系统繁忙'); phpcommon\sendError(ERR_INTERNAL + 1, '系统繁忙');
return; return;
} }
@ -863,11 +863,15 @@ class RechargeController
} }
} }
$daily = array();
foreach ($dailypurchase as $key => $val) { foreach ($dailypurchase as $key => $val) {
if ($val['time'] < $daysecs) { if ($val['time'] < $daysecs) {
unset($dailypurchase[$key]); unset($dailypurchase[$key]);
} else {
array_push($daily, $val);
} }
} }
$dailypurchase = $daily;
} }
} }