mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 19:37:35 +08:00
style: clean code
This commit is contained in:
parent
f093fffb89
commit
1567491d08
@ -1,7 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Flurl;
|
using Flurl;
|
||||||
@ -34,9 +32,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
.SetQueryParam("tar_type", request.TarType)
|
.SetQueryParam("tar_type", request.TarType)
|
||||||
.SetQueryParam("algorithm", request.Algorithm);
|
.SetQueryParam("algorithm", request.Algorithm);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(request.TarType))
|
|
||||||
flurlReq.SetQueryParam("tar_type", request.TarType);
|
|
||||||
|
|
||||||
return await client.SendRequestWithJsonAsync<Models.GetPayScoreMerchantBillResponse>(flurlReq, cancellationToken: cancellationToken);
|
return await client.SendRequestWithJsonAsync<Models.GetPayScoreMerchantBillResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user