From c183462ef32e1ddec75b7c762371008429480f6c Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Thu, 2 Sep 2021 21:09:04 +0900 Subject: [PATCH] update: server log --- app/Services/ServerService.php | 2 +- database/update.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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`; +