fix(wxapi): fix typo

This commit is contained in:
Fu Diwei 2021-10-06 13:37:21 +08:00
parent eb2c5fe286
commit a2632cefbb
2 changed files with 3 additions and 11 deletions

View File

@ -17,5 +17,5 @@ var request = new Models.CgibinTicketGetTicketRequest()
AccessToken = "微信 AccessToken" AccessToken = "微信 AccessToken"
}; };
var response = await client.ExecuteCgibinTicketGetTicketAsync(request); var response = await client.ExecuteCgibinTicketGetTicketAsync(request);
var paramMap = client.GenerateParametersForJssdkConfigRequest(response.Ticket, "https://example.com"); var paramMap = client.GenerateParametersForJssdkConfig(response.Ticket, "https://example.com");
``` ```

View File

@ -1,14 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using Flurl;
using Flurl.Http;
namespace SKIT.FlurlHttpClient.Wechat.Api namespace SKIT.FlurlHttpClient.Wechat.Api
{ {
@ -25,7 +17,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <param name="jsapiTicket"></param> /// <param name="jsapiTicket"></param>
/// <param name="url"></param> /// <param name="url"></param>
/// <returns></returns> /// <returns></returns>
public static IDictionary<string, string> GenerateParametersForJssdkConfigRequest(this WechatApiClient client, string jsapiTicket, string url) public static IDictionary<string, string> GenerateParametersForJSSDKConfig(this WechatApiClient client, string jsapiTicket, string url)
{ {
if (client is null) throw new ArgumentNullException(nameof(client)); if (client is null) throw new ArgumentNullException(nameof(client));
if (jsapiTicket is null) throw new ArgumentNullException(nameof(jsapiTicket)); if (jsapiTicket is null) throw new ArgumentNullException(nameof(jsapiTicket));
@ -51,7 +43,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <param name="client"></param> /// <param name="client"></param>
/// <param name="wxcardTicket"></param> /// <param name="wxcardTicket"></param>
/// <returns></returns> /// <returns></returns>
public static IDictionary<string, string> GenerateParametersForJssdkChooseInvoiceRequest(this WechatApiClient client, string wxcardTicket) public static IDictionary<string, string> GenerateParametersForJSSDKChooseInvoice(this WechatApiClient client, string wxcardTicket)
{ {
if (client is null) throw new ArgumentNullException(nameof(client)); if (client is null) throw new ArgumentNullException(nameof(client));
if (wxcardTicket is null) throw new ArgumentNullException(nameof(wxcardTicket)); if (wxcardTicket is null) throw new ArgumentNullException(nameof(wxcardTicket));