请输入卡密进行验证
0
请求URL:
/api/verify
请求方法:
POST
请求头:
Content-Type:application/json
请求参数:
{ "machine_code": "string", // 机器码 "license_key": "string" // 卡密 }
返回示例:
{ "code": 0, // 0表示成功,其他表示失败 "message": "验证成功", // 消息描述 "data": { "valid": true, // 是否有效 "expire_time": "2023-12-31 23:59:59", // 过期时间 "note": "VIP用户" // 备注信息 "qqGroups": "12345,54321" // QQ群列表,多个群用逗号隔开 } }
/api/heartbeat
{ "code": 0, // 0表示成功,其他表示失败 "message": "心跳成功", // 消息描述 "data": { "connected": true, // 是否连接 "expire_time": "2023-12-31 23:59:59" // 过期时间 } }
/api/disconnect
{ "code": 0, // 0表示成功,其他表示失败 "message": "已断开连接", // 消息描述 "data": { "disconnected": true // 是否已断开 } }
/api/get_machine_code
GET
无
{ "code": 0, // 0表示成功,其他表示失败 "message": "获取机器码成功", // 消息描述 "data": { "machine_code": "string", // 机器码 "timestamp": "string" // 时间戳 } }
/api/admin_login
{"username": "string", // 管理员用户名 "password": "string" // 管理员密码}
{"code": 0, // 0表示成功,其他表示失败 "message": "登录成功", // 消息描述 "data": { "token": "string", // 管理员token "username": "string" // 管理员用户名 } }
/api/get_all_licenses
{"admin_token": "string" // 管理员token}
{"code": 0, // 0表示成功,其他表示失败 "message": "获取成功", // 消息描述 "data": { "licenses": [ {"id": 1, "license_key": "string", "created_at": "string", "expires_at": "string", "status": "string", "note": "string" } ] } }
/api/get_online_users
{"code": 0, // 0表示成功,其他表示失败 "message": "获取成功", // 消息描述 "data": { "online_users": [ {"id": 1, "machine_code": "string", "license_key": "string", "login_time": "string" } ] } }
/api/generate_licenses
{"admin_token": "string", // 管理员token "count": 10, // 生成数量 "days": 30, // 有效期天数 "note": "string", // 备注信息(可选) "qqGroups": "string" // QQ群号,多个群号用逗号分隔(可选)}
{"code": 0, // 0表示成功,其他表示失败 "message": "卡密生成成功", // 消息描述 "data": { "licenses": [ { "key": "string", // 卡密 "type": "subscription", // 类型 "expireDate": "string", // 过期日期 "daysLeft": 30, // 剩余天数 "note": "string", // 备注信息 "qqGroups": "string" // QQ群号 }, {"key": "string", ...} // 更多卡密 ] } }
/api/delete_license
{"admin_token": "string", // 管理员token "license_key": "string" // 要删除的卡密}
{"code": 0, // 0表示成功,其他表示失败 "message": "卡密删除成功", // 消息描述 "data": {"deleted": true} // 是否已删除 }
/api/change_admin_password
{"admin_token": "string", // 管理员token "old_password": "string", // 旧密码 "new_password": "string" // 新密码}
{"code": 0, // 0表示成功,其他表示失败 "message": "密码修改成功", // 消息描述 "data": {"changed": true} // 是否已修改 }