mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:28:39 +08:00
style: format
This commit is contained in:
parent
9bf9d0c979
commit
f54ba4889b
@ -1,6 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
||||||
{
|
{
|
||||||
@ -9,7 +7,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>验证回调通知事件签名。</para>
|
/// <para>验证回调通知事件签名。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TResponse"></typeparam>
|
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="callbackAuthorization"></param>
|
/// <param name="callbackAuthorization"></param>
|
||||||
/// <param name="callbackBody"></param>
|
/// <param name="callbackBody"></param>
|
||||||
@ -73,7 +70,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>验证回调通知事件签名。</para>
|
/// <para>验证回调通知事件签名。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TResponse"></typeparam>
|
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="callbackTimestamp"></param>
|
/// <param name="callbackTimestamp"></param>
|
||||||
/// <param name="callbackNonce">。</param>
|
/// <param name="callbackNonce">。</param>
|
||||||
@ -91,7 +87,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>验证回调通知事件签名。</para>
|
/// <para>验证回调通知事件签名。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TResponse"></typeparam>
|
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="callbackTimestamp"></param>
|
/// <param name="callbackTimestamp"></param>
|
||||||
/// <param name="callbackNonce">。</param>
|
/// <param name="callbackNonce">。</param>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
@ -75,7 +74,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>验证响应签名。</para>
|
/// <para>验证响应签名。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TResponse"></typeparam>
|
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="responseTimestamp"></param>
|
/// <param name="responseTimestamp"></param>
|
||||||
/// <param name="responseNonce">。</param>
|
/// <param name="responseNonce">。</param>
|
||||||
@ -92,7 +90,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>验证响应签名。</para>
|
/// <para>验证响应签名。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TResponse"></typeparam>
|
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="responseTimestamp"></param>
|
/// <param name="responseTimestamp"></param>
|
||||||
/// <param name="responseNonce">。</param>
|
/// <param name="responseNonce">。</param>
|
||||||
|
@ -39,7 +39,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("bank_account_number_last4")]
|
[System.Text.Json.Serialization.JsonPropertyName("bank_account_number_last4")]
|
||||||
public string? BankAccountNumberLast4String { get; set; }
|
public string? BankAccountNumberLast4String { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FailedReason
|
public class FailedReason
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="../../LOGO.png" Pack="true" PackagePath="/" />
|
<None Include="../../LOGO.png" Pack="true" PackagePath="/" />
|
||||||
<None Include="README.md" />
|
<None Include="README.md" Pack="true" PackagePath="/" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -45,4 +45,4 @@
|
|||||||
<PackageReference Include="SKIT.FlurlHttpClient.Common" Version="2.5.0" />
|
<PackageReference Include="SKIT.FlurlHttpClient.Common" Version="2.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -98,7 +98,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
|
|||||||
{
|
{
|
||||||
InnerReplacePropertyStringValue(ref element, replacement);
|
InnerReplacePropertyStringValue(ref element, replacement);
|
||||||
//if (!array.IsReadOnly)
|
//if (!array.IsReadOnly)
|
||||||
//{
|
//{
|
||||||
// array.SetValue(element, i);
|
// array.SetValue(element, i);
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Org.BouncyCastle.Crypto;
|
using Org.BouncyCastle.Crypto;
|
||||||
using Org.BouncyCastle.Crypto.Parameters;
|
using Org.BouncyCastle.Crypto.Parameters;
|
||||||
using Org.BouncyCastle.OpenSsl;
|
|
||||||
using Org.BouncyCastle.Security;
|
using Org.BouncyCastle.Security;
|
||||||
using Org.BouncyCastle.X509;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -8,17 +8,17 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness
|
|||||||
public abstract class WechatTenpayBusinessResponse : ICommonResponse
|
public abstract class WechatTenpayBusinessResponse : ICommonResponse
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
int ICommonResponse.RawStatus { get; set; }
|
int ICommonResponse.RawStatus { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IDictionary<string, string> ICommonResponse.RawHeaders { get; set; } = default!;
|
IDictionary<string, string> ICommonResponse.RawHeaders { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
byte[] ICommonResponse.RawBytes { get; set; } = default!;
|
byte[] ICommonResponse.RawBytes { get; set; } = default!;
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"file_id": ""
|
"file_id": ""
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"query_date": "2021-01-01"
|
"query_date": "2021-01-01"
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
"download_url": "",
|
"download_url": "",
|
||||||
"expire_time": "2021-06-08T10:34:56+08:00",
|
"expire_time": "2021-06-08T10:34:56+08:00",
|
||||||
"bill_status": ""
|
"bill_status": ""
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"close_reason": ""
|
"close_reason": ""
|
||||||
}
|
}
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
"out_payment_id": "",
|
"out_payment_id": "",
|
||||||
"status": "",
|
"status": "",
|
||||||
"close_time": "2021-06-08T10:34:56+08:00"
|
"close_time": "2021-06-08T10:34:56+08:00"
|
||||||
}
|
}
|
||||||
|
@ -30,4 +30,4 @@
|
|||||||
"notify_url": {
|
"notify_url": {
|
||||||
"server_notify_url": ""
|
"server_notify_url": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,4 +11,4 @@
|
|||||||
},
|
},
|
||||||
"pay_status": "",
|
"pay_status": "",
|
||||||
"memo": ""
|
"memo": ""
|
||||||
}
|
}
|
||||||
|
@ -17,4 +17,4 @@
|
|||||||
"failed_detail": ""
|
"failed_detail": ""
|
||||||
},
|
},
|
||||||
"attachment": ""
|
"attachment": ""
|
||||||
}
|
}
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
"url": "",
|
"url": "",
|
||||||
"expire_time": "2020-01-01T01:02:03+08:00"
|
"expire_time": "2020-01-01T01:02:03+08:00"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,4 +39,4 @@
|
|||||||
"web_success_url": "",
|
"web_success_url": "",
|
||||||
"web_refresh_url": ""
|
"web_refresh_url": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"request_no": "",
|
"request_no": "",
|
||||||
"out_request_no": ""
|
"out_request_no": ""
|
||||||
}
|
}
|
||||||
|
@ -14,4 +14,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"id": ""
|
"id": ""
|
||||||
}
|
}
|
||||||
|
@ -16,4 +16,4 @@
|
|||||||
"mp_username": "",
|
"mp_username": "",
|
||||||
"expire_time": "2020-01-01T01:02:03+08:00"
|
"expire_time": "2020-01-01T01:02:03+08:00"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,4 +8,4 @@
|
|||||||
},
|
},
|
||||||
"WorkDirectoryForSdk": "请输入当前 SDK 项目所在的目录完整路径,如 C:\\Project\\src\\SKIT.FlurlHttpClient.Wechat.TenpayBusiness\\",
|
"WorkDirectoryForSdk": "请输入当前 SDK 项目所在的目录完整路径,如 C:\\Project\\src\\SKIT.FlurlHttpClient.Wechat.TenpayBusiness\\",
|
||||||
"WorkDirectoryForTest": "请输入当前测试项目所在的目录完整路径,如 C:\\Project\\test\\SKIT.FlurlHttpClient.Wechat.TenpayBusiness.UnitTests\\"
|
"WorkDirectoryForTest": "请输入当前测试项目所在的目录完整路径,如 C:\\Project\\test\\SKIT.FlurlHttpClient.Wechat.TenpayBusiness.UnitTests\\"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user