GEO-获取状态

接口信息

  • 接口地址: {your-site-url}/api/skill/geo/get-geo-status
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: GET
  • 说明: 获取 GEO 功能的开启状态。

认证

请求头中需要携带 skill-access-token:

Header 值
skill-access-token {your-skill-access-token} (请替换为你自己的 token)

请求参数

无请求参数。

请求示例

cURL

curl --location --request GET '{your-site-url}/api/skill/geo/get-geo-status' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json' \
--data-raw ''

返回结果

code 为 200 表示调用成功;code 不为 200 表示调用失败。

成功响应

{
    "code": 200,
    "data": {
        "status": true,
        "customfile_id": 25
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code int 状态码,200 表示成功
message string 执行结果的文字描述
data object 返回数据
data.status bool GEO 功能状态。true = 开启,false = 关闭
data.customfile_id int 自定义文件数据 ID(插件:自定义文件)。GEO 开启时返回对应自定义文件 ID;关闭时为 0

注意事项

  1. status 为 true 表示 GEO 功能已开启,false 表示已关闭
  2. GEO 功能开启后,系统会生成对应的自定义文件(见插件:自定义文件),customfile_id 即该文件数据 ID
  3. 开启/关闭 GEO 功能请分别使用 GEO-开启功能、GEO-关闭功能
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-08-23 16:17:25

results matching ""

    No results matching ""