Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odnoklassniki error #52

Open
webinmd opened this issue Jul 4, 2023 · 0 comments
Open

Odnoklassniki error #52

webinmd opened this issue Jul 4, 2023 · 0 comments
Labels

Comments

@webinmd
Copy link
Contributor

webinmd commented Jul 4, 2023

Сообщение об ошибке / Error message

Резюме / Summary

Есть две ошибки по провайдеру Одноклассники

  1. формат записи ключа должен быть следующим:
    {"keys":{"id":"123456787654","key":"UHGKLJOKLHGIJ","secret":"TVBUN35467"}}

  2. формат даты рождения не подходит, необходимо в файле изменить, иначе не может записать в базу (пытается в поле День с ограничением в 2 символа сохранить 4 символа года)

было:

 if ($data->get('birthday')) {
            $bday = explode('-', $data->get('birthday'));
            $userProfile->birthDay = (int)$bday[0];
            $userProfile->birthMonth = (int)$bday[1];
            $userProfile->birthYear = (int)$bday[2];
        }

стало:

 if ($data->get('birthday')) {
            $bday = explode('-', $data->get('birthday'));
            $userProfile->birthDay = (int)$bday[2];
            $userProfile->birthMonth = (int)$bday[1];
            $userProfile->birthYear = (int)$bday[0];
        }
@webinmd webinmd added the bug label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant