mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: server manage
This commit is contained in:
parent
67d257c7b2
commit
3b969c2c52
@ -333,6 +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'];
|
||||
}
|
||||
return $server->toArray();
|
||||
}
|
||||
@ -352,6 +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'];
|
||||
}
|
||||
return $server->toArray();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user