mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
dont error hard for "special" steamids
This commit is contained in:
parent
8f82097d93
commit
f6f9622d5f
1 changed files with 5 additions and 1 deletions
|
|
@ -22,7 +22,11 @@ class UserController extends BaseController {
|
||||||
|
|
||||||
public function get($steamId) {
|
public function get($steamId) {
|
||||||
if (!is_numeric($steamId)) {
|
if (!is_numeric($steamId)) {
|
||||||
$steamId = Parser::convertSteamIdToCommunityId($steamId);
|
try {
|
||||||
|
$steamId = Parser::convertSteamIdToCommunityId($steamId);
|
||||||
|
} catch (\InvalidArgumentException $e) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
\Flight::json($this->userProvider->get($steamId));
|
\Flight::json($this->userProvider->get($steamId));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue