From 17be643ce2f864e12624a7c59a6365e2c0d8c060 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Sun, 13 Dec 2020 14:16:07 +0800 Subject: [PATCH] update: server manage --- app/Services/ServerService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index 9c17a3a6..50cd51ed 100644 --- a/app/Services/ServerService.php +++ b/app/Services/ServerService.php @@ -304,7 +304,7 @@ class ServerService } else { $server[$i]['last_check_at'] = Cache::get(CacheKey::get('SERVER_SHADOWSOCKS_LAST_CHECK_AT', $server[$i]['id'])); } - $server[$i]['available'] = (time() - 300) > $server[$i]['last_check_at']; + $server[$i]['available'] = (time() - 300) < $server[$i]['last_check_at']; } return $server->toArray(); } @@ -333,7 +333,7 @@ class ServerService } else { $server[$i]['last_check_at'] = Cache::get(CacheKey::get('SERVER_V2RAY_LAST_CHECK_AT', $server[$i]['id'])); } - $server[$i]['available'] = (time() - 300) > $server[$i]['last_check_at']; + $server[$i]['available'] = (time() - 300) < $server[$i]['last_check_at']; } return $server->toArray(); } @@ -353,7 +353,7 @@ class ServerService } else { $server[$i]['last_check_at'] = Cache::get(CacheKey::get('SERVER_TROJAN_LAST_CHECK_AT', $server[$i]['id'])); } - $server[$i]['available'] = (time() - 300) > $server[$i]['last_check_at']; + $server[$i]['available'] = (time() - 300) < $server[$i]['last_check_at']; } return $server->toArray(); }