diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index cf6ef29c..aea63453 100644 --- a/app/Services/ServerService.php +++ b/app/Services/ServerService.php @@ -261,7 +261,7 @@ class ServerService public function log(int $userId, int $serverId, int $u, int $d, float $rate, string $method) { if (($u + $d) < 10240) return true; - $timestamp = strtotime(date('Y-m-d H:0')); + $timestamp = strtotime(date('Y-m-d')); $serverLog = ServerLog::where('log_at', '>=', $timestamp) ->where('log_at', '<', $timestamp + 3600) ->where('server_id', $serverId) diff --git a/database/update.sql b/database/update.sql index 80e70855..e03b4a5b 100644 --- a/database/update.sql +++ b/database/update.sql @@ -438,3 +438,4 @@ ALTER TABLE `v2_ticket_message` ALTER TABLE `v2_coupon` ADD `limit_use_with_user` int(11) NULL AFTER `limit_use`; +