update: server log

This commit is contained in:
tokumeikoi 2021-09-02 21:09:04 +09:00
parent 2a5e9ef079
commit c183462ef3
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -438,3 +438,4 @@ ALTER TABLE `v2_ticket_message`
ALTER TABLE `v2_coupon`
ADD `limit_use_with_user` int(11) NULL AFTER `limit_use`;