根据第三方平台API中的小程序域名管理接口,尝试使用了<代开发的小程序域名配置>说明的两种方式,都提示不在以下 request 合法域名列表,且小程序工具中显示request 合法域名列表没有设置。
但使用<获取发布后生效业务域名列表> 接口:POST https://api.weixin.qq.com/wxa/get_effective_webviewdomain?access_token=ACCESS_TOKEN 后,返回的数据为:{\"errcode\":0,\"errmsg\":\"ok\",\"mp_webviewdomain\":[\"https:\\/\\/bolebang.xcycwl.net\"],\"third_webviewdomain\":[\"https:\\/\\/bolebang.xcycwl.net\"],\"direct_webviewdomain\":[\"https:\\/\\/bolebang.xcycwl.net\"],\"effective_webviewdomain\":[\"https:\\/\\/bolebang.xcycwl.net\"]}
证明我发布小程序后,此域名已经是被设置过,是可以的。但很奇怪,当我提交审核并发布后,仍然显示request 合法域名列表没有设置。
第三方平台也已经配置好了域名,请求接口POST https://api.weixin.qq.com/cgi-bin/component/get_domain_confirmfile?access_token=ACCESS_TOKEN,返回数据为:{\"published_wxa_jump_h5_domain\":\"https:\\/\\/bolebang.xcycwl.net\",\"testing_wxa_jump_h5_domain\":\"https:\\/\\/bolebang.xcycwl.net\"}
不清楚是什么原因。

你好,参考代开发的小程序域名配置说明https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/domain.html选择其中一种方式,调用modifyServerDomain或modifyServerDomainDirectly接口为小程序配置服务器域名.
https://developers.weixin.qq.com/doc/oplatform/openApi/miniprogram-management/domain-management/api_modifyserverdomain.html
https://developers.weixin.qq.com/doc/oplatform/openApi/miniprogram-management/domain-management/api_modifyserverdomaindirectly.html
哥们,服务器域名调这个接口啊https://developers.weixin.qq.com/doc/oplatform/openApi/miniprogram-management/domain-management/api_modifyserverdomaindirectly.html
你配置的是业务域名
1 第三方平台和小程序后台的域名配置完全一致
2 确认通过接口设置域名后已调用【提交审核】接口并成功发布
3 实际请求的域名'https://bolebang.xycwl.net与配置的'https://bolebang.xcycwl.net' 完全一致
补充图片: