Exemplo n.º 1
0
 /// <summary>
 ///   GreatestHelper 构造函数
 /// </summary>
 /// <param name="publicKey">极验验证公钥</param>
 /// <param name="privateKey">极验验证私钥</param>
 public GeetestHelper(IOptions <GeetestOptions> option)
 {
     _privateKey = option.Value.PrivateKey;
     _captchaId  = option.Value.PublicKey;
     Response    = new GeetestResponseModel
     {
         gt = option.Value.PublicKey
     };
 }
 /// <summary>
 ///   GreatestHelper 构造函数
 /// </summary>
 /// <param name="publicKey">极验验证公钥</param>
 /// <param name="privateKey">极验验证私钥</param>
 public GeetestHelper(string publicKey, string privateKey)
 {
     _privateKey = privateKey;
     _captchaId  = publicKey;
     Response    = new GeetestResponseModel
     {
         gt = publicKey
     };
 }