Skip to content

Commit

Permalink
add support for v2ray
Browse files Browse the repository at this point in the history
  • Loading branch information
orvice committed Feb 22, 2018
1 parent f96c0a0 commit db2519a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/Controllers/MuV2/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@ class NodeController extends BaseController
public function users($request, $response, $args)
{
$users = User::all();
$data = [];
foreach ($users as $user){
$user->v2ray_user = [
"uuid" => $user->v2ray_uuid,
"email" => sprintf("%[email protected]", $user->v2ray_uuid),
"alter_id" => $user->v2ray_alter_id,
"level" => $user->v2ray_level,
];
array_push($data, $user);
}
$res = [
'msg' => 'ok',
'data' => $users,
'data' => $data,
];

return $this->echoJson($response, $res);
Expand Down

0 comments on commit db2519a

Please sign in to comment.