# 获取发布后生效业务域名列表

调试工具

接口应在服务器端调用,详细说明参见服务端API

# 接口说明

# 接口英文名

getEffectiveJumpDomain

# 功能描述

# 调用方式

# HTTPS 调用


POST https://api.weixin.qq.com/wxa/get_effective_webviewdomain?access_token=ACCESS_TOKEN 

# 第三方调用

  • 调用方式以及出入参和HTTPS相同,仅是调用的token不同

  • 该接口所属的权限集id为:18

  • 服务商获得其中之一权限集授权后,可通过使用authorizer_access_token代商家进行调用

# 请求参数

属性 类型 必填 说明
access_token string 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用authorizer_access_token

# 返回参数

属性 类型 说明
errcode number 错误码
errmsg string 错误信息
mp_webviewdomain array<string> 通过公众平台配置的服务器域名列表
third_webviewdomain array<string> 通过第三方平台接口modifyServerDomain 配置的服务器域名
direct_webviewdomain array<string> 通过modifyJumpDomainDirectly接口配置的业务域名列表
effective_webviewdomain array<string> 最后提交代码或者发布上线后生效的域名列表

# 调用示例

示例说明: HTTPS请求

# 请求数据示例


POST https://api.weixin.qq.com/wxa/get_effective_webviewdomain?access_token=COMPONENT_ACCESS_TOKEN 

# 返回数据示例


{
    "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 system error 系统繁忙,此时请开发者稍候再试