Jelajahi Sumber

update: server log

tokumeikoi 3 tahun lalu
induk
melakukan
c183462ef3
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  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`;
+