主题
按应用批量查询逃生页配置 3.9.5+
调用本接口根据应用wid列表批量查询逃生页配置。
接口说明
请求URL:http[s]://{网关地址}/casp-portal/config/getEscapePageByApps
请求方式: POST
请求内容类型: application/json
响应内容类型: application/json
请求说明
请求头
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 应用ID | appId | M | String(128) | 接入网关的应用ID |
| Token | accessToken | M | String | 接入网关的accessToken |
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 应用wid列表 | appWids | M | List<String> | 应用wid列表 |
请求示例
json
{
"appWids": ["1533955240704208896"]
}1
2
3
2
3
响应说明
响应体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 返回码 | errcode | M | String | 0 成功,其他为不成功 |
| 返回码描述 | errmsg | O | String | 返回码描述 |
| 返回对象 | data | O | List<AppEscapePageDto> | 返回的应用逃生页配置列表 |
AppEscapePageDto:
| 字段名 | 参数名 | 类型 | 描述 |
|---|---|---|---|
| 应用wid | appWid | String | 应用wid |
| 逃生页配置 | EscapePageConfig | 逃生页配置 |
EscapePageConfig(返回)
| 字段名 | 参数名 | 类型 | 描述 |
|---|---|---|---|
| 默认错误页图片 | defaultIconUrl | String | 默认图片配置 |
| 错误页图片配置 | iconUrl | String | 错误页图片配置,如果没有就取默认配置 |
| 错误页提示语 | List<MultiLangData> | 提示语 | |
| 跳转链接 | List<EscapePageLink> | 跳转链接 | |
| 链接打开方式 | escapePageLinkOpenType | String | "0":当前页打开,"1":新标签页打开 |
MultiLangData(返回)
| 字段名 | 类型 | 描述 |
|---|---|---|
| langCountry | String | 国家编码 |
| langValue | String | 多语言值 |
escapePageLink(返回)
| 字段名 | 类型 | 描述 |
|---|---|---|
List<MultiLangData> | 链接名称 | |
| escapeLinkUrl | String | 链接地址 |
| orderNumber | Integer | 排序 |
响应示例
json
{
"errcode": "0",
"errmsg": "请求成功",
"data": [
{
"appWid": "1533955240704208896",
"escapePage": {
"defaultIconUrl": "https://xxxxx.wisedu.com/oss/userIcon/casp-portal/uploadInfos/20241210/escape_page_icon1316000557235544064.png?sign=-xxxxx",
"iconUrl": "https://xxxxxxxx.wisedu.com/oss/userIcon/casp-portal/uploadInfos/20241210/17338006667173398.png?sign=xxxxxxx",
"escapeTip": [
{
"langCountry": "zh_CN",
"langValue": "很抱歉,该服务暂时无法访问,您可跳转其他页面继续访问",
"orderNumber": 0
},
{
"langCountry": "en",
"langValue": "yingwen",
"orderNumber": 1
},
{
"langCountry": "ru",
"langValue": "俄文、",
"orderNumber": 2
}
],
"escapePageLinks": [
{
"escapeLink": [
{
"langCountry": "zh_CN",
"langValue": "金智2",
"orderNumber": 0
}
],
"escapeLinkUrl": "http://www.wisedu.com",
"orderNumber": 0
},
{
"escapeLink": [
{
"langCountry": "zh_CN",
"langValue": "金智3",
"orderNumber": 0
}
],
"escapeLinkUrl": "http://www.wisedu.com",
"orderNumber": 1
},
{
"escapeLink": [
{
"langCountry": "zh_CN",
"langValue": "金智4",
"orderNumber": 0
}
],
"escapeLinkUrl": "http://www.wisedu.com",
"orderNumber": 2
}
],
"escapePageLinkOpenType": "0"
}
}
]
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
错误码
| 错误码 | 描述 |
|---|---|
| 999 | 统一错误码,详细描述信息参见接口返回 |
Demo
java
Client client = new DefaultClient(BASE_URL, APP_ID,APP_SECRET);
EscapePageByAppsRequest request = new EscapePageByAppsRequest();
request.setAppWids(Arrays.asList("1533955240704208896"));
EscapePageByAppsResponse response = client.execute(request);
//调用成功,则处理业务逻辑
if (response.isSuccess()) {
//.....
}1
2
3
4
5
6
7
8
2
3
4
5
6
7
8

