Merge pull request #246 from ColetteContreras/dev

Save original traffic to log
This commit is contained in:
tokumeikoi 2020-05-29 01:32:03 +08:00 committed by GitHub
commit c3eac30c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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