(proxy *proxys.IProxy, token *tokens.AccessToken)
| 45 | } |
| 46 | |
| 47 | func NewHandle(proxy *proxys.IProxy, token *tokens.AccessToken) *Handler { |
| 48 | return &Handler{proxy: proxy, token: token, sessions: NewSessionManager()} |
| 49 | } |
| 50 | |
| 51 | // initTurnStileWithRetry 初始化 turnstile,当 paid token 返回 401 时自动禁用并轮询下一个 |
| 52 | func (h *Handler) initTurnStileWithRetry(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string) (*chatgpt.TurnStile, int, error) { |
no test coverage detected