mirror of
https://github.com/v2board/v2board.git
synced 2025-07-08 14:49:06 +08:00
恢复为实时流量统计
This commit is contained in:
@ -170,16 +170,18 @@ class UserService
|
||||
|
||||
public function trafficFetch(array $server, string $protocol, array $data)
|
||||
{
|
||||
$statService = new StatisticalService();
|
||||
$statService->setStartAt(strtotime(date('Y-m-d')));
|
||||
$statService->setUserStats();
|
||||
$statService->setServerStats();
|
||||
//$statService = new StatisticalService();
|
||||
//$statService->setStartAt(strtotime(date('Y-m-d')));
|
||||
//$statService->setUserStats();
|
||||
//$statService->setServerStats();
|
||||
foreach (array_keys($data) as $userId) {
|
||||
$u = $data[$userId][0];
|
||||
$d = $data[$userId][1];
|
||||
StatServerJob::dispatch($u, $d, $server, $protocol, 'd');
|
||||
StatUserJob::dispatch($u, $d, $userId, $server, $protocol, 'd');
|
||||
TrafficFetchJob::dispatch($u, $d, $userId, $server, $protocol);
|
||||
$statService->statServer($server['id'], $protocol, $u, $d);
|
||||
$statService->statUser($server['rate'], $userId, $u, $d);
|
||||
//$statService->statServer($server['id'], $protocol, $u, $d);
|
||||
//$statService->statUser($server['rate'], $userId, $u, $d);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user