Skip to content

Commit

Permalink
Изменил "userrecaptcha" в method
Browse files Browse the repository at this point in the history
  • Loading branch information
odi1n committed Jan 1, 2020
1 parent 5e57335 commit c05fc57
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CaptchaOnService/Enum/Rucaptcha/METHOD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public enum Method
/// <summary>
/// Определяет, что вы решаете ReCaptcha V2 с помощью нового метода
/// </summary>
USERRECAPTCHA,
userrecaptcha,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public class ReCaptchaV2Models : SettingModels
/// <summary>
/// Метод указан по умолчанию
/// </summary>
public Method Method { get; set; } = Method.USERRECAPTCHA;
public Method Method { get; set; } = Method.userrecaptcha;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ReCaptchaV3Models : SettingModels
/// <summary>
/// Метод указан по умолчанию
/// </summary>
public Method Method { get; set; } = Method.USERRECAPTCHA;
public Method Method { get; set; } = Method.userrecaptcha;
/// <summary>
/// v3 — указывает на то, что это ReCaptcha V3. указана по умолчанию
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions CaptchaOnService/Rucaptcha/Rucaptcha.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public ResponseModels ReCaptchaV2(ReCaptchaV2Models recaptcha)
/// <param name="proxy_type">Тип вашего прокси-сервера: HTTP, HTTPS, SOCKS4, SOCKS5.</param>
/// <param name="sleep">Время задержки получения ответа </param>
/// <returns></returns>
public ResponseModels ReCaptchaV2(string googlekey, string pageurl, Method method = Method.USERRECAPTCHA, int? invisible = null, int? header_acao = null, string pingback = null,
public ResponseModels ReCaptchaV2(string googlekey, string pageurl, Method method = Method.userrecaptcha, int? invisible = null, int? header_acao = null, string pingback = null,
string proxy = null, ProxyType? proxy_type = null, int sleep = 2000)
{
ReCaptchaV2Models recaptcha = new ReCaptchaV2Models()
Expand All @@ -212,7 +212,7 @@ public ResponseModels ReCaptchaV2(string googlekey, string pageurl, Method metho
/// Решить капчу ReCaptcha V3
/// </summary>
/// <returns></returns>
public ResponseModels ReCaptcha_V3(ReCaptchaV3Models recaptcha)
public ResponseModels ReCaptchaV3(ReCaptchaV3Models recaptcha)
{
return _query.ReCaptchaV3(recaptcha);
}
Expand All @@ -232,7 +232,7 @@ public ResponseModels ReCaptcha_V3(ReCaptchaV3Models recaptcha)
/// <param name="proxy_type">Тип вашего прокси-сервера: HTTP, HTTPS, SOCKS4, SOCKS5.</param>
/// <param name="sleep">Время задержки получения ответа </param>
/// <returns></returns>
public ResponseModels ReCaptcha_V3(string googlekey, string pageurl, string version = "v3", Method method = Method.USERRECAPTCHA, string action = null,
public ResponseModels ReCaptchaV3(string googlekey, string pageurl, string version = "v3", Method method = Method.userrecaptcha, string action = null,
double? min_score = null, int? header_acao = null, string pingback = null, string proxy = null, ProxyType? proxy_type = null, int sleep = 2000)
{
ReCaptchaV3Models recaptcha = new ReCaptchaV3Models()
Expand Down

0 comments on commit c05fc57

Please sign in to comment.