区域管理
## 获取省市区
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:GetAreaList| 是 |
| xy_code| string | 省市code| 否 |
| xy_type | int | 类型 0省 1市 2县区 | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[
{
"xy_code":130100,
"xy_name":"石家庄市"
},
{
"xy_code":130200,
"xy_name":"唐山市"
},
]
}
```
## 区域添加
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:Add| 是 |
| xy_province_code| int | 省code| 是 |
| xy_province_name| string| 省 | 是 |
| xy_city_code| int | 市code| 否 |
| xy_city_name| string| 市 | 否 |
| xy_district_code| int | 区县code| 否 |
| xy_district_name| string| 区县 | 否 |
| xy_year_money| double| 年费(元) | 是 |
| xy_year_score| int| 年费(积分),当积分设置为-1时 表示没有积分兑换,前台也将不显示积分兑换 | 是 |
| xy_player_blv| int| 玩家抽成比例 | 是 |
| xy_agent_blv| int| 代理商抽成比例 | 是 |
| xy_agent_score| int| 新代理奖励积分 | 是 |
| xy_player_score| int| 新玩家奖励积分 | 是 |
| xy_cash_blv| int| 商场现金兑换比例 | 是 |
| xy_platform_blv| int| 商场平台币兑换比例 | 是 |
| xy_remark| int| 备注 | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[]
}
```
## 区域管理列表
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:GetList| 是 |
| xy_province_code| int | 省code| 否 |
| xy_city_code| int | 市code| 否 |
| xy_district_code| int | 区县code| 否 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[
{
"xy_id":1,//区域代理id
"xy_province_code":130000,
"xy_province_name":"河北省",
"xy_city_code":130100,
"xy_city_name":"石家庄市",
"xy_district_code":130133,
"xy_district_name":"赵县",
"xy_year_money":10000,//年费(元)
"xy_year_score":2000,//年费(积分)
"xy_player_blv":1,//玩家抽成比例
"xy_agent_blv":1,//代理商抽成比例
"xy_agent_score":2000,//新代理奖励积分
"xy_player_score":1000,//新玩家奖励积分
"xy_cash_blv":1000,//商场现金兑换比例
"xy_platform_blv":1000,//商场平台币兑换比例
"xy_remark":"备注",
"xy_uname":"区域代理账号"
}
]
}
```
## 区域批量修改
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:BatchUpdate | 是 |
| xy_ids| string| 批量修改id,逗号隔开 | 是 |
| xy_year_money| double| 年费(元) | 是 |
| xy_year_score| int| 年费(积分),当积分设置为-1时 表示没有积分兑换,前台也将不显示积分兑换 | 是 |
| xy_player_blv| int| 玩家抽成比例 | 是 |
| xy_agent_blv| int| 代理商抽成比例 | 是 |
| xy_agent_score| int| 新代理奖励积分 | 是 |
| xy_player_score| int| 新玩家奖励积分 | 是 |
| xy_cash_blv| int| 商场现金兑换比例 | 是 |
| xy_platform_blv| int| 商场平台币兑换比例 | 是 |
| xy_remark| int| 备注 | 是 |
```
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[]
}
```
## 批量删除
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:BatchDel| 是 |
| xy_ids| string| 批量修改id,逗号隔开 | 是 |
```
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[]
}
```
## 区域代理商/玩家抽成列表
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:GetMoneyList| 是 |
| xy_type | int | 类型 0玩家分成 1代理商分成 | 是 |
| xy_uname | string | 账号 | 否 |
| xy_province_code| int | 省code| 否 |
| xy_city_code| int | 市code| 否 |
| xy_district_code| int | 区县code| 否 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[
{
"xy_id":1,//区域代理id
"xy_uid":1234,//用户id
"xy_uname":"代理商/玩家名称",
"xy_level_id":1,//等级编号
"xy_level_name":"等级名称",
"xy_money":100,//金额
"xy_createtime":"",//时间
"xy_province_money":{//省
"xy_name":"河北省",//省市区名称
"xy_uname":"用户名称",
"xy_money":10 //抽成金额
},
"xy_city_money":{ //市
"xy_name":"河北省",//市名称
"xy_uname":"用户名称",
"xy_money":10 //抽成金额
},
"xy_district_money":{ //区
"xy_name":"河北省",//区名称
"xy_uname":"用户名称",
"xy_money":10 //抽成金额
}
}
]
}
```
## 区域积分记录列表
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:AreaPage | 是 |
| _method | string | 固定值:GetScoreList| 是 |
| xy_uname | string | 账号 | 否 |
| xy_province_code| int | 省code| 否 |
| xy_city_code| int | 市code| 否 |
| xy_district_code| int | 区县code| 否 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[
{
"xy_id":1,//区域积分记录id
"xy_province_code":130000,
"xy_province_name":"河北省",
"xy_city_code":130100,
"xy_city_name":"石家庄市",
"xy_city_code":130133,
"xy_city_name":"赵县",
"xy_score":10000,//积分
"xy_type":1,//0新玩家奖励 1新代理商奖励
"xy_remark":"备注",
"xy_uname":"区域代理账号",
"xy_createtime":"",//时间
}
]
}
```