get_https_settings
获取网站的 HTTPS 模式及 HTTP→HTTPS 跳转状态。
- 路由:
POST /site - action:
get_https_settings
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 get_https_settings |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | 请求结果 |
| data.https_mode | Boolean | 是否开启 HTTPS |
| data.http2https | Boolean | 是否开启 HTTP→HTTPS 强制跳转 |
| code | Integer | 状态码 |
| timestamp | Integer | 时间戳 |
示例
请求
POST /site HTTP/1.1
Content-Type: application/x-www-form-urlencoded
request_time=1700000000&request_token=xxx&action=get_https_settings
响应
{
"status": true,
"msg": "ok",
"data": {"https_mode": false, "http2https": false},
"code": 0,
"timestamp": 1779443313
}