分账
## 获取
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:FenZhangPage | 是 |
| _method | string | 固定值:Get | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":{
"xy_switch":0,//0关闭 1开启
"xy_appid":"商户编号",
"xy_appkey":"商户密钥",
"xy_url":"请求地址",
"xy_alipaypubliccertpath":"支付宝公钥证书路径",
"xy_appcertpath":"商户应用证书路径",
"xy_rootcertpath":"支付宝根证书路径",
}
}
```
## 保存
### 请求地址
```
api/index/
```
### 请求参数
| 请求参数 | 类型 | 说明 | 是否必填 |
|---------|------|------|---------|
| _handle | string | 固定值:FenZhangPage | 是 |
| _method | string | 固定值:Save | 是 |
| xy_switch | int | 0关闭 1开启 修改开关 只传这个参数 | 是 |
| xy_appid | string | 商户编号 | 是 |
| xy_appkey| string | 商户密钥 | 是 |
| xy_url| string | 请求地址 | 是 |
| xy_alipaypubliccertpath| string |支付宝公钥证书路径| 是 |
| xy_appcertpath| string | 商户应用证书路径 | 是 |
| xy_rootcertpath| string | 支付宝根证书路径 | 是 |
### 返回值
``` json
{
"code":1,
"msg":"",
"data":[]
}
```