Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mojinxun committed Jul 28, 2023
1 parent ce08a01 commit 7085744
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ public static UploadPrivacyExtFileResult UploadPrivacyExtFile(string componentAc
/// <returns></returns>
public static ModifyWxaServerDomainResult ModifyWxaServerDomain(string componentAccessToken, ModifyWxaServerDomain_Action action, string wxa_server_domain = null, bool? is_modify_published_together = null, int timeOut = Config.TIME_OUT)
{
var urlFormat = Config.ApiMpHost + "/cgi-bin/component/modify_wxa_jump_domain?access_token={0}";
var urlFormat = Config.ApiMpHost + "/cgi-bin/component/modify_wxa_server_domain?access_token={0}";
var data = new
{
action = action.ToString(),
Expand Down Expand Up @@ -1199,7 +1199,7 @@ public static async Task<UploadPrivacyExtFileResult> UploadPrivacyExtFileAsync(s
/// <returns></returns>
public static async Task<ModifyWxaServerDomainResult> ModifyWxaServerDomainAsync(string componentAccessToken, ModifyWxaServerDomain_Action action, string wxa_server_domain = null, bool? is_modify_published_together = null, int timeOut = Config.TIME_OUT)
{
var urlFormat = Config.ApiMpHost + "/cgi-bin/component/modify_wxa_jump_domain?access_token={0}";
var urlFormat = Config.ApiMpHost + "/cgi-bin/component/modify_wxa_server_domain?access_token={0}";
var data = new
{
action = action.ToString(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2023 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
----------------------------------------------------------------*/
#endregion Apache License Version 2.0

/*----------------------------------------------------------------
Copyright (C) 2023 Senparc
文件名:SetPrefetchDNSDomain.cs
文件功能描述:设置DNS预解析域名请求参数
创建标识:Yaofeng - 20220809
----------------------------------------------------------------*/

namespace Senparc.Weixin.Open.WxaAPIs.Domain
{
/// <summary>
/// 获取DNS预解析域名
/// </summary>
public class GetPrefetchDNSDomainData
{
/// <summary>
///
/// </summary>
public string url { get; set; }

/// <summary>
///
/// </summary>
public int status { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public class GetPrefetchDNSDomainResultJson : WxJsonResult
/// <summary>
/// 预解析 dns 域名
/// </summary>
public List<SetPrefetchDNSDomainData> prefetch_dns_domain { get; set; }
public List<GetPrefetchDNSDomainData> prefetch_dns_domain { get; set; }

/// <summary>
/// 总共可配置域名个数
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ public class SetPrefetchDNSDomainData
///
/// </summary>
public string url { get; set; }

/// <summary>
///
/// </summary>
public int status { get; set; }
}

}

0 comments on commit 7085744

Please sign in to comment.