mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
update: server log
This commit is contained in:
parent
2a5e9ef079
commit
c183462ef3
@ -261,7 +261,7 @@ class ServerService
|
|||||||
public function log(int $userId, int $serverId, int $u, int $d, float $rate, string $method)
|
public function log(int $userId, int $serverId, int $u, int $d, float $rate, string $method)
|
||||||
{
|
{
|
||||||
if (($u + $d) < 10240) return true;
|
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)
|
$serverLog = ServerLog::where('log_at', '>=', $timestamp)
|
||||||
->where('log_at', '<', $timestamp + 3600)
|
->where('log_at', '<', $timestamp + 3600)
|
||||||
->where('server_id', $serverId)
|
->where('server_id', $serverId)
|
||||||
|
@ -438,3 +438,4 @@ ALTER TABLE `v2_ticket_message`
|
|||||||
|
|
||||||
ALTER TABLE `v2_coupon`
|
ALTER TABLE `v2_coupon`
|
||||||
ADD `limit_use_with_user` int(11) NULL AFTER `limit_use`;
|
ADD `limit_use_with_user` int(11) NULL AFTER `limit_use`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user