style: перевести комментарии на русский, убрать очевидные
This commit is contained in:
1 parent
ada9b949a4
commit
e417dac087
48 files changed
+659
-671
No files matched your search
@@ -11,8 +11,8 @@ import (
|
||||
tlsclient "github.com/bogdanfinn/tls-client"
|
||||
)
|
||||
|
||||
// fetchOkRuSession performs step 3 of the token chain: it obtains an anonymous
|
||||
// ok.ru session_key via auth.anonymLogin.
|
||||
// fetchOkRuSession — шаг 3 цепочки: получает анонимный ok.ru session_key
|
||||
// через auth.anonymLogin.
|
||||
func (c *Client) fetchOkRuSession(ctx context.Context, httpClient tlsclient.HttpClient, profile browserprofile.Profile) (string, error) {
|
||||
sessionData := fmt.Sprintf(`{"version":2,"device_id":"%s","client_version":1.1,"client_type":"SDK_JS"}`, uuid.New())
|
||||
data := fmt.Sprintf("session_data=%s&method=auth.anonymLogin&format=JSON&application_key=CGMMEJLGDIHBABABA",
|
||||
|
||||
Reference in new issue
Block a user