update: server manage

This commit is contained in:
tokumeikoi 2020-12-13 12:16:05 +08:00
parent bc709a9c94
commit 67d257c7b2

View File

@ -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();
}