|
@@ -113,7 +113,7 @@ namespace Essensoft.Paylink.Alipay
|
|
|
if (reqMethod.ToUpperInvariant() == "GET")
|
|
|
{
|
|
|
var url = options.ServerUrl;
|
|
|
- if (txtParams != null && txtParams.Count > 0)
|
|
|
+ if (txtParams.Count > 0)
|
|
|
{
|
|
|
if (url.Contains("?"))
|
|
|
{
|
|
@@ -289,7 +289,7 @@ namespace Essensoft.Paylink.Alipay
|
|
|
throw new AlipayException("sign check fail: Body)} is Empty!");
|
|
|
}
|
|
|
|
|
|
- if (!isError || isError && !string.IsNullOrEmpty(signItem.Sign))
|
|
|
+ if (!isError || !string.IsNullOrEmpty(signItem.Sign))
|
|
|
{
|
|
|
var rsaCheckContent = AlipaySignature.RSACheckContent(signItem.SignSourceData, signItem.Sign, options.AlipayPublicKey, options.SignType);
|
|
|
if (!rsaCheckContent)
|
|
@@ -479,7 +479,7 @@ namespace Essensoft.Paylink.Alipay
|
|
|
throw new AlipayException("cert check fail: Body)} is Empty!");
|
|
|
}
|
|
|
|
|
|
- if (!isError || isError && !string.IsNullOrEmpty(certItem.Sign))
|
|
|
+ if (!isError || !string.IsNullOrEmpty(certItem.Sign))
|
|
|
{
|
|
|
var currentAlipayPublicKey = await _publicKeyManager.GetAlipayPublicKeyAsync(this, options, certItem.CertSN);
|
|
|
var rsaCheckContent = AlipaySignature.RSACheckContent(certItem.SignSourceData, certItem.Sign, currentAlipayPublicKey, options.SignType);
|