# 获取发布后生效业务域名列表
- 该接口用于或者通过新接口配置的业务域名在提交代码或者发布上线后真实生效的域名列表。
- 使用之前请详细查看代开发的小程序域名配置说明
- 使用过程中如遇到问题,可在开放平台服务商专区发帖交流。
# 请求地址
POST https://api.weixin.qq.com/wxa/get_effective_webviewdomain?access_token=access_token
# 请求参数说明
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | 是 | 第三方平台接口调用令牌authorizer_access_token |
# 返回参数说明
参数 | 类型 | 说明 |
---|---|---|
errcode | Number | 返回码 |
errmsg | String | 错误信息 |
mp_webviewdomain | String array | 通过 mp 配置的服务器域名列表 |
third_webviewdomain | String array | 通过第三方modify_domain 配置的服务器域名 |
direct_webviewdomain | String array | 通过“setwebviewdomain_directly”接口配置的业务域名列表 |
effective_webviewdomain | String array | 最后提交代码或者发布上线后生效的域名列表 |
返回结果示例:
{
"errcode": 0,
"errmsg": "ok",
"mp_webviewdomain": [
"https://a.b.howielu.top",
"https://developers.weixin.qq.com",
"https://melody2.howielu.top/"
],
"third_webviewdomain": [
"https://a.b.howielu.top",
"https://developers.weixin.qq.com",
"https://melody2.howielu.top/"
],
"direct_webviewdomain": [
"https://melody2.howielu.top/"
],
"effective_webviewdomain": [
"https://a.b.howielu.top",
"https://developers.weixin.qq.com",
"https://melody2.howielu.top/"
]
}
# 返回码说明
返回码 | 说明 |
---|---|
-1 | 系统繁忙 |
其他错误码 | 请查看全局错误码 |