From 743311f2f7651c1f015867b68c26a1936a0aa03d Mon Sep 17 00:00:00 2001 From: Colette Contreras Date: Tue, 6 Apr 2021 07:03:45 +0800 Subject: [PATCH] Update PoseidonController.php Fix server status --- app/Http/Controllers/Server/PoseidonController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Server/PoseidonController.php b/app/Http/Controllers/Server/PoseidonController.php index 3d8aaffd..deb04aa7 100644 --- a/app/Http/Controllers/Server/PoseidonController.php +++ b/app/Http/Controllers/Server/PoseidonController.php @@ -67,6 +67,7 @@ class PoseidonController extends Controller $data = file_get_contents('php://input'); $data = json_decode($data, true); Cache::put(CacheKey::get('SERVER_V2RAY_ONLINE_USER', $server->id), count($data), 3600); + Cache::put(CacheKey::get('SERVER_V2RAY_LAST_PUSH_AT', $server->id), time(), 3600); $userService = new UserService(); foreach ($data as $item) { $u = $item['u'] * $server->rate;