mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
less stubs, more really answers (#641)
This commit is contained in:
parent
71b9c57030
commit
5bae9d224d
1 changed files with 3 additions and 5 deletions
|
@ -13,8 +13,8 @@ final class Account extends VKAPIRequestHandler
|
||||||
"last_name" => $this->getUser()->getLastName(),
|
"last_name" => $this->getUser()->getLastName(),
|
||||||
"home_town" => $this->getUser()->getHometown(),
|
"home_town" => $this->getUser()->getHometown(),
|
||||||
"status" => $this->getUser()->getStatus(),
|
"status" => $this->getUser()->getStatus(),
|
||||||
"bdate" => "1.1.1970", # TODO
|
"bdate" => $this->getUser()->getBirthday()->format('%e.%m.%Y'),
|
||||||
"bdate_visibility" => 0, # TODO
|
"bdate_visibility" => $this->getUser()->getBirthdayPrivacy(),
|
||||||
"phone" => "+420 ** *** 228", # TODO
|
"phone" => "+420 ** *** 228", # TODO
|
||||||
"relation" => $this->getUser()->getMaritalStatus(),
|
"relation" => $this->getUser()->getMaritalStatus(),
|
||||||
"sex" => $this->getUser()->isFemale() ? 1 : 2
|
"sex" => $this->getUser()->isFemale() ? 1 : 2
|
||||||
|
@ -25,10 +25,8 @@ final class Account extends VKAPIRequestHandler
|
||||||
{
|
{
|
||||||
$this->requireUser();
|
$this->requireUser();
|
||||||
|
|
||||||
# Цiй метод є заглушка
|
|
||||||
|
|
||||||
return (object) [
|
return (object) [
|
||||||
"2fa_required" => 0,
|
"2fa_required" => $this->getUser()->is2faEnabled() ? 1 : 0,
|
||||||
"country" => "CZ", # TODO
|
"country" => "CZ", # TODO
|
||||||
"eu_user" => false, # TODO
|
"eu_user" => false, # TODO
|
||||||
"https_required" => 1,
|
"https_required" => 1,
|
||||||
|
|
Loading…
Reference in a new issue