获取全局配置参数
请求URL:
/config
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| 无 | 无 | 无 | 无 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"appId": "aichat-8e7351e-10cfda-secrets-ai-android",
"appUpdateConfig": {
"control": {
"isCheck": true
},
"appUpdate": {
"link": "https://www.baidu.com",
"force": false,
"content": "",
"version": "1.0.9"
}
},
"contactUs": "",
"isChecked": 1,
"purchaseBuff": {
"limitCount": 10,
"limitTime": 3600
},
"withdraw": {
"balanceLimit": 3000
}
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据 |
| -appId | string | 当前appId |
| -contactUs | string | 联系我们 |
| -appUpdate | struct | 更新内容 |
| --force | bool | 否强制用户更新 |
| --link | string | 更新需要跳转的地址 |
| --version | string | 更新的版本 |
| --content | string | 更新的内容 |
| -isChecked | int | 是否审核期间1:是 0:否 |
| -withdraw | struct | 提现配置 |
| --balanceLimit | int | 累计余额限制(美分) |
| -purchaseBuff | struct | 充值加成 |
| --limitCount | int | 充值后X次抽奖限制 |
| --limitTime | int | 充值后X秒时间内抽奖限制 |
备注
之后所有的公共配置参数都从此接口获取