Skip to content

Commit

Permalink
Update AlipayClient.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
roc916 committed Jul 4, 2023
1 parent 879f366 commit be5bdcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Essensoft.Paylink.Alipay/AlipayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public async Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, AlipayOption
if (reqMethod.ToUpperInvariant() == "GET")
{
var url = options.ServerUrl;
if (txtParams != null && txtParams.Count > 0)
if (txtParams.Count > 0)
{
if (url.Contains("?"))
{
Expand Down Expand Up @@ -289,7 +289,7 @@ private static void CheckResponseSign<T>(IAlipayRequest<T> request, string body,
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)
Expand Down Expand Up @@ -479,7 +479,7 @@ private async Task CheckResponseCertSignAsync<T>(IAlipayRequest<T> request, stri
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);
Expand Down

0 comments on commit be5bdcf

Please sign in to comment.