mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
Save original traffic to log
This commit is contained in:
parent
a6bcc3f153
commit
8838381432
@ -72,17 +72,14 @@ class PoseidonController extends Controller
|
|||||||
$u = $item['u'] * $server->rate;
|
$u = $item['u'] * $server->rate;
|
||||||
$d = $item['d'] * $server->rate;
|
$d = $item['d'] * $server->rate;
|
||||||
if (!$userService->trafficFetch($u, $d, $item['user_id'])) {
|
if (!$userService->trafficFetch($u, $d, $item['user_id'])) {
|
||||||
return response([
|
return $this->error("user fetch fail", 500);
|
||||||
'ret' => 0,
|
|
||||||
'msg' => 'user fetch fail'
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$serverService->log(
|
$serverService->log(
|
||||||
$item['user_id'],
|
$item['user_id'],
|
||||||
$request->input('node_id'),
|
$request->input('node_id'),
|
||||||
$u,
|
$item['u'],
|
||||||
$d,
|
$item['d'],
|
||||||
$server->rate
|
$server->rate
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user