Ver Fonte

update: server log

tokumeikoi há 3 anos atrás
pai
commit
c183462ef3
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 1
      app/Services/ServerService.php
  2. 1 0
      database/update.sql

+ 1 - 1
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)

+ 1 - 0
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`;
+