Merge pull request #417 from ColetteContreras/patch-2

This commit is contained in:
tokumeikoi
2021-05-07 14:16:51 +09:00
committed by GitHub

View File

@ -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;