Explorar o código

Update PoseidonController.php

Fix server status
Colette Contreras %!s(int64=4) %!d(string=hai) anos
pai
achega
743311f2f7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Http/Controllers/Server/PoseidonController.php

+ 1 - 0
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;