style(tenpayv3): clean code

This commit is contained in:
fudiwei 2022-12-02 17:29:26 +08:00
parent 136896c7d0
commit 1eb72bba16
3 changed files with 1 additions and 8 deletions

View File

@ -72,7 +72,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <param name="callbackSerialNumber">微信回调通知中的 Wechatpay-Serial 字段。</param> /// <param name="callbackSerialNumber">微信回调通知中的 Wechatpay-Serial 字段。</param>
/// <param name="error"></param> /// <param name="error"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
public static bool VerifyEventSignature(this WechatTenpayClient client, string callbackTimestamp, string callbackNonce, string callbackBody, string callbackSignature, string callbackSerialNumber, out Exception? error) public static bool VerifyEventSignature(this WechatTenpayClient client, string callbackTimestamp, string callbackNonce, string callbackBody, string callbackSignature, string callbackSerialNumber, out Exception? error)
{ {
return VerifyEventSignature( return VerifyEventSignature(
@ -101,7 +100,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <param name="callbackSerialNumber">微信回调通知中的 Wechatpay-Serial 字段。</param> /// <param name="callbackSerialNumber">微信回调通知中的 Wechatpay-Serial 字段。</param>
/// <param name="error"></param> /// <param name="error"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
public static bool VerifyEventSignature(this WechatTenpayClient client, string callbackTimestamp, string callbackNonce, string callbackBody, string callbackSignature, string callbackSignatureType, string callbackSerialNumber, out Exception? error) public static bool VerifyEventSignature(this WechatTenpayClient client, string callbackTimestamp, string callbackNonce, string callbackBody, string callbackSignature, string callbackSignatureType, string callbackSerialNumber, out Exception? error)
{ {
if (client == null) throw new ArgumentNullException(nameof(client)); if (client == null) throw new ArgumentNullException(nameof(client));

View File

@ -33,7 +33,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <param name="response"></param> /// <param name="response"></param>
/// <param name="error"></param> /// <param name="error"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
public static bool VerifyResponseSignature<TResponse>(this WechatTenpayClient client, TResponse response, out Exception? error) public static bool VerifyResponseSignature<TResponse>(this WechatTenpayClient client, TResponse response, out Exception? error)
where TResponse : WechatTenpayResponse where TResponse : WechatTenpayResponse
{ {
@ -109,7 +108,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml </para> /// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml </para>
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_1.shtml </para> /// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_1.shtml </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>
@ -118,7 +116,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <param name="responseSerialNumber"></param> /// <param name="responseSerialNumber"></param>
/// <param name="error"></param> /// <param name="error"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
public static bool VerifyResponseSignature(this WechatTenpayClient client, string responseTimestamp, string responseNonce, string responseBody, string responseSignature, string responseSerialNumber, out Exception? error) public static bool VerifyResponseSignature(this WechatTenpayClient client, string responseTimestamp, string responseNonce, string responseBody, string responseSignature, string responseSerialNumber, out Exception? error)
{ {
return VerifyResponseSignature( return VerifyResponseSignature(
@ -138,7 +135,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml </para> /// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml </para>
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_1.shtml </para> /// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay4_1.shtml </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>
@ -148,7 +144,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// <param name="responseSerialNumber"></param> /// <param name="responseSerialNumber"></param>
/// <param name="error"></param> /// <param name="error"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
public static bool VerifyResponseSignature(this WechatTenpayClient client, string responseTimestamp, string responseNonce, string responseBody, string responseSignature, string responseSignatureType, string responseSerialNumber, out Exception? error) public static bool VerifyResponseSignature(this WechatTenpayClient client, string responseTimestamp, string responseNonce, string responseBody, string responseSignature, string responseSignatureType, string responseSerialNumber, out Exception? error)
{ {
if (client == null) throw new ArgumentNullException(nameof(client)); if (client == null) throw new ArgumentNullException(nameof(client));

View File

@ -80,7 +80,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
public string? BusinessAuthorizeLetterCopyMediaId { get; set; } public string? BusinessAuthorizeLetterCopyMediaId { get; set; }
/// <summary> /// <summary>
/// 获取或设置超级管理员微信 OpenId。与字段 <see cref="IdCardNumber"/> 二选一。 /// 获取或设置超级管理员微信 OpenId。
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("openid")] [Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")] [System.Text.Json.Serialization.JsonPropertyName("openid")]