get_free_total_status
查询指定网站或全局的免费流量限制开关状态。
- 路由:
POST /site - action:
get_free_total_status
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 get_free_total_status |
| site_id | 是 | String | 网站 ID,传 "global" 查询全局 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 查询成功 |
| data | Object | {"status": true/false} |
| msg | String | 结果消息 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=get_free_total_status&site_id=1
响应
{"status": true, "data": {"status": true}, "msg": "获取成功"}
相关接口
- set_free_total_status — 设置状态