跳到主要内容
版本:latest

set_free_total_status

设置指定网站的免费流量限制开关,也可设为 global 进行全局配置。

  • 路由POST /site
  • actionset_free_total_status

输入参数

参数名称必选类型描述
actionString固定值 set_free_total_status
site_idString网站 ID,传 "global" 设置全局
statusInteger1 开启,0 关闭

输出参数

参数名称类型描述
statusBooleantrue 设置成功
msgString设置成功

示例

请求

POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=set_free_total_status&site_id=1&status=1

响应

{"status": true, "msg": "设置成功"}

相关接口