获取模板-域名-游戏-保存
## 获取模板列表
```
请求地址:域名/api/channel/core/
```
### 请求参数
| 参数名 | 类型 | 说明 | 是否必填 |
|--------|-----|------|---------|
| active_class | string | 固定值:TemplateEngine | 是 |
| active_method | string | 固定值:GetTemplateList | 是 |
| type | string | 平台:platform 官网:official | 是 |
### 请求响应
``` json
{
"Message":"成功",
"Code":0,
"Total":1,
"IsSuccess":true,
"ClientData":[{
"xy_template_id":"xy001",
"xy_template_title":"xy001",
"xy_template_desc":"",
"xy_template_url":"",
"xy_template_img":[{"key":"模板1","value":"url地址"},{"key":"模板1","value":"url地址"}]
}]
}
```
## 获取平台域名绑定
```
请求地址:域名/api/channel/core/
```
### 请求参数
| 参数名 | 类型 | 说明 | 是否必填 |
|--------|-----|------|---------|
| active_class | string | 固定值:TemplateEngine | 是 |
| active_method | string | 固定值:GetDomainList| 是 |
| model | int | 单站:0 站群:1 (站群未完成) | 是 |
| type | int | 平台:0 官网:1 | 是 |
| domain | string | 域名 | 是 |
### 请求响应
``` json
{
"Message":"成功",
"Code":0,
"Total":0,
"IsSuccess":true,
"ClientData":{
"充值站":"域名/pay",
"游戏站":"域名/play",
"会员站":"域名/vip",
"礼包站":"域名/gift",
"挖宝":"域名/wabao",
"摇钱树":"域名/yaoqianshu",
"聚宝盆":"域名/jubaopen",
"抽奖":"域名/lucky",
"小号交易":"域名/xhjy",
"商城站":"域名/shop",
"论坛站":"域名/bbs",
"试玩":"域名/cpl",
"分享":"域名/share"
}
}
```
## 获取游戏列表
```
请求地址:域名/xykj2020/system/
```
### 请求参数
| 参数名 | 类型 | 说明 | 是否必填 |
|--------|-----|------|---------|
| active_class | string | 固定值:TemplateEngine | 是 |
| active_method | string | 固定值:GetGameList | 是 |
### 请求响应
``` json
{
"Message":"成功",
"Code":0,
"Total":2,
"IsSuccess":true,
"ClientData":[
{
"xy_game_id":1386,
"xy_game_name":"花千骨重制版-cq123"
},{
"xy_game_id":1385,
"xy_game_name":"花千骨重置版-接0wanwan"
}
]
}
```
## 保存全局信息
```
请求地址:域名/xykj2020/system/
```
### 请求参数
| 参数名 | 类型 | 说明 | 是否必填 |
|--------|-----|------|---------|
| active_class | string | 固定值:TemplateEngine | 是 |
| active_method | string | 固定值:SaveGlobalInfo | 是 |
| xy_template | string | 模板名称 | 是 |
| xy_station_name | string | 站点名称 | 是 |
| xy_station_domain | string | 主域名 | 是 |
| xy_station_child_domain | string | 站点域名 示例(充值:域名1,会员:域名2) | 是 |
| xy_station_type | int | 0:平台 1:官网 | 否 默认:0 |
| xy_station_model | int | 0:单站模式 1:站群模式 | 否 默认:0 |
| xy_official_gameid | int | 游戏id | 否 默认:0 |
| xy_official_gamename | string | 游戏名称 | 否 |
| xy_station_ico | string | ico 图片 | 否 |
| xy_station_keyword | string | 关键字 | 否 |
| xy_station_description | string | 描述 | 否 |
| xy_station_pc_bottom | string | 电脑底部信息 | 否|
| xy_station_phone_bottom | string | 手机底部信息 | 否 |
| xy_station_hmt_bottom | string | 统计代码 | 否 |
### 请求响应
``` json
{
"Message":"成功",
"Code":0,
"Total":0,
"IsSuccess":true,
"ClientData":[]
}
```