style: clean code

This commit is contained in:
Fu Diwei 2021-09-24 20:02:18 +08:00
parent f093fffb89
commit 1567491d08

View File

@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Flurl;
@ -34,9 +32,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
.SetQueryParam("tar_type", request.TarType)
.SetQueryParam("algorithm", request.Algorithm);
if (!string.IsNullOrEmpty(request.TarType))
flurlReq.SetQueryParam("tar_type", request.TarType);
return await client.SendRequestWithJsonAsync<Models.GetPayScoreMerchantBillResponse>(flurlReq, cancellationToken: cancellationToken);
}
}