chore: lint fix
This commit is contained in:
1 parent
8311a2e2f9
commit
e5874e3c30
3 files changed
+7
-4
No files matched your search
@@ -308,12 +308,12 @@ func (s *captchaSession) fetchCaptchaHTML(redirectURI string) (string, error) {
|
||||
|
||||
func (s *captchaSession) resolveDebugInfo(scriptURL string) string {
|
||||
if scriptURL != "" {
|
||||
if v, err := s.fetchDebugInfoJS(scriptURL); err == nil {
|
||||
v, err := s.fetchDebugInfoJS(scriptURL)
|
||||
if err == nil {
|
||||
s.logger().Debugf("[Captcha] debug_info from JS len=%d", len(v))
|
||||
return v
|
||||
} else {
|
||||
s.logger().Warnf("[Captcha] debug_info JS fetch failed: %v; using UUID fallback", err)
|
||||
}
|
||||
s.logger().Warnf("[Captcha] debug_info JS fetch failed: %v; using UUID fallback", err)
|
||||
} else {
|
||||
s.logger().Warnf("[Captcha] captcha script URL not in HTML; using UUID fallback")
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
tlsclient "github.com/bogdanfinn/tls-client"
|
||||
)
|
||||
|
||||
func (c *Client) defaultAutoSolve(
|
||||
func (*Client) defaultAutoSolve(
|
||||
ctx context.Context,
|
||||
captchaErr *captcha.Error,
|
||||
streamID int,
|
||||
|
||||
@@ -20,6 +20,9 @@ type TurnCredentials struct {
|
||||
Link string
|
||||
}
|
||||
|
||||
// Публичные app_id/secret штатных VK-клиентов (зашиты в сами приложения), не наши приватные креды.
|
||||
//
|
||||
//nolint:gosec // G101: публичные VK app secrets
|
||||
var DefaultCredentials = []VKCredentials{
|
||||
{ClientID: "6287487", ClientSecret: "QbYic1K3lEV5kTGiqlq2"}, // VK_WEB_APP_ID
|
||||
{ClientID: "7879029", ClientSecret: "aR5NKGmm03GYrCiNKsaw"}, // VK_MVK_APP_ID
|
||||
|
||||
Reference in new issue
Block a user