跳到主要内容
版本:latest

get_site_types

获取面板中网站的分类列表。

  • 路由POST /site
  • actionget_site_types

输入参数

参数名称必选类型描述
actionString固定值 get_site_types

输出参数

返回数组,每项:

参数名称类型描述
idInteger分类 ID,0 = 默认分类,-2 = 已停止网站
nameString分类名称

示例

请求

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

request_time=1700000000&request_token=xxx&action=get_site_types

响应

[
{"id": 0, "name": "默认分类"},
{"id": -2, "name": "已停止网站"}
]