Skip to content

许可

许可信息相关接口,许可维护

GET 获取许可授权信息

GET /admin/tx/license/info

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "sysVersion": "图新地球·网页端2.2.0.556",
    "RegistrationDate": "2025-01-08",
    "releaseDate": "2024-07-01",
    "isValid": true,
    "hardwareComputerID": 1420537861,
    "licenseUpdateTime": "2025-01-10 09:21:59",
    "version": "2.2.0.556",
    "datetime": "2025-01-10 10:52:31",
    "isTrailProduct": true,
    "expire": "2025-07-07",
    "sysName": "图新地球·网页端",
    "skdSupport": true,
    "timestamp": "1736477551932"
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» sysVersionstringtruenone程序版本
»» RegistrationDatestringtruenone注册时间
»» releaseDatestringtruenonenone
»» isValidbooleantruenone是否有效
»» hardwareComputerIDintegertruenone授权码
»» licenseUpdateTimestringtruenone许可最后更新时间
»» versionstringtruenonelocaspacebuilder版本
»» datetimestringtruenonenone
»» isTrailProductbooleantruenonenone
»» expirestringtruenone过期时间
»» sysNamestringtruenonenone
»» skdSupportbooleantruenonenone
»» timestampstringtruenonenone
» okbooleantruenonenone

GET 获取授权码

GET /admin/tx/license/hardWareCode

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": "1420537861",
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datastringtruenone授权码
» okbooleantruenonenone

POST 上传License授权文件

POST /admin/tx/license/upload

Body 请求参数

yaml
license: ""

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
bodybodyobjectnone
» licensebodystring(binary)许可文件

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

POST 保存License授权文件信息

POST /admin/tx/license/uploadStr

Body 请求参数

yaml
licenseStr: dasdadads

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
bodybodyobjectnone
» licenseStrbodystring许可内容字符串

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

DELETE 清除许可授权缓存

DELETE /admin/tx/license/cache

请求参数

名称位置类型必选说明
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

Released under the MIT License.