Save original traffic to log

This commit is contained in:
Colette Contreras 2020-05-28 17:05:36 +08:00
parent a6bcc3f153
commit 8838381432

View File

@ -72,17 +72,14 @@ class PoseidonController extends Controller
$u = $item['u'] * $server->rate;
$d = $item['d'] * $server->rate;
if (!$userService->trafficFetch($u, $d, $item['user_id'])) {
return response([
'ret' => 0,
'msg' => 'user fetch fail'
]);
return $this->error("user fetch fail", 500);
}
$serverService->log(
$item['user_id'],
$request->input('node_id'),
$u,
$d,
$item['u'],
$item['d'],
$server->rate
);
}