update telegram & user edit

This commit is contained in:
Tokumeikoi 2020-05-25 17:20:48 +08:00
parent b851f1207a
commit afcd0d9c10
3 changed files with 3 additions and 9 deletions

View File

@ -47,13 +47,7 @@ class UserController extends Controller
abort(500, '参数错误');
}
return response([
'data' => User::select([
'email',
'u',
'd',
'transfer_enable',
'expired_at'
])->find($request->input('id'))
'data' => User::find($request->input('id'))
]);
}

View File

@ -83,7 +83,7 @@ class TelegramController extends Controller
$telegramService = new TelegramService();
$commands = [
'/bind 订阅地址 - 绑定你的' . config('v2board.app_name', 'V2Board') . '账号',
'/traffic 查询流量'
'/traffic - 查询流量信息'
];
$text = implode(PHP_EOL, $commands);
$telegramService->sendMessage($msg->chat_id, "你可以使用以下命令进行操作:\n\n$text", 'markdown');

File diff suppressed because one or more lines are too long