diff --git a/src/Essensoft.Paylink.Alipay/AlipayClient.cs b/src/Essensoft.Paylink.Alipay/AlipayClient.cs index af349c55e..a7b31909f 100644 --- a/src/Essensoft.Paylink.Alipay/AlipayClient.cs +++ b/src/Essensoft.Paylink.Alipay/AlipayClient.cs @@ -113,7 +113,7 @@ public async Task PageExecuteAsync(IAlipayRequest request, AlipayOption 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 @@ private static void CheckResponseSign(IAlipayRequest 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) @@ -479,7 +479,7 @@ private async Task CheckResponseCertSignAsync(IAlipayRequest 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);