From 67d257c7b239c2e6c91df7dd6202c8f885264b9e Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Sun, 13 Dec 2020 12:16:05 +0800 Subject: [PATCH] update: server manage --- app/Services/ServerService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index 4a5d474a..13931968 100644 --- a/app/Services/ServerService.php +++ b/app/Services/ServerService.php @@ -304,6 +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']; } return $server->toArray(); }