style: clean code

This commit is contained in:
Fu Diwei
2021-10-18 19:51:57 +08:00
parent dfbd0c0901
commit 74da006d0b
25 changed files with 139 additions and 139 deletions

View File

@@ -73,7 +73,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Get, "refund", "domestic", "refunds", request.OutRefundNumber);
if (!string.IsNullOrEmpty(request.SubMerchantId))
if (request.SubMerchantId != null)
flurlReq.SetQueryParam("sub_mchid", request.SubMerchantId);
return await client.SendRequestWithJsonAsync<Models.GetRefundDomesticRefundByOutRefundNumberResponse>(flurlReq, cancellationToken: cancellationToken);