Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置第三方平台服务器域名调用url参数错误 Senparc.Weixin.Open.ComponentAPIs.ComponentApi.ModifyWxaServerDomain #2882

Open
1 task
luchigster opened this issue Jul 13, 2023 · 2 comments
Labels
resolved 已解决

Comments

@luchigster
Copy link

问题描述

接口中的url错误,按照官方文档,modify_wxa_jump_domain 应该改为 modify_wxa_server_domain

public static ModifyWxaServerDomainResult ModifyWxaServerDomain(string componentAccessToken, ModifyWxaServerDomain_Action action, string wxa_server_domain = null, bool? is_modify_published_together = null, int timeOut = 10000)
{
    string urlFormat = Config.ApiMpHost + "/cgi-bin/component/modify_wxa_jump_domain?access_token={0}";
    var data = new
    {
        action = action.ToString(),
        wxa_server_domain = wxa_server_domain,
        is_modify_published_together = is_modify_published_together
    };
    return CommonJsonSend.Send<ModifyWxaServerDomainResult>(componentAccessToken, urlFormat, data, CommonJsonSendType.POST, timeOut, checkValidationResult: false, new JsonSetting(ignoreNulls: true));
}
微信官方文档 URL

https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/domain-mgnt/modifyThirdpartyServerDomain.html

微信官方文档快照(直接复制关键内容到下方)
HTTPS 调用
POST https://api.weixin.qq.com/cgi-bin/component/modify_wxa_server_domain?access_token=ACCESS_TOKEN
发现问题的模块
  • Senparc.Weixin.Open 版本:~
@luchigster luchigster changed the title 设置第三方平台服务器域名 Senparc.Weixin.Open.ComponentAPIs.ComponentApi.ModifyWxaServerDomain 设置第三方平台服务器域名调用url参数错误 Senparc.Weixin.Open.ComponentAPIs.ComponentApi.ModifyWxaServerDomain Jul 13, 2023
@JeffreySu JeffreySu added the task label Jul 13, 2023
mojinxun added a commit to mojinxun/WeiXinMPSDK that referenced this issue Jul 28, 2023
@mojinxun mojinxun mentioned this issue Jul 28, 2023
@mojinxun
Copy link
Contributor

@SenparcHai

JeffreySu added a commit that referenced this issue Jul 29, 2023
   1、解决问题:接收微信授权事件推送"快速创建个人小程序" 缺少字段 #2870
   2、解决问题:设置第三方平台服务器域名调用url参数错误 #2882
   3、解决问题:设置DNS预解析域名data参数错误

感谢 @mojinxun #2893 #2870 #2882 #2883
@JeffreySu JeffreySu added resolved 已解决 and removed task labels Jul 29, 2023
@JeffreySu
Copy link
Owner

已发布新版本,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolved 已解决
Projects
None yet
Development

No branches or pull requests

3 participants