解绑 - UnBind
函数简介
解绑当前设备上的授权信息。调用后由服务端按当前设备上下文执行解绑逻辑。
返回数据格式:
{
"Code": 1,
"ServerTime": "2026-04-24 10:00:00.000",
"Message": "",
"LicenceKeys": ["xxxx-xxxx-xxxx"]
}
| 字段名 | 说明 |
|---|---|
| Code | 结果状态码。 |
| ServerTime | 服务器时间。 |
| Message | 提示信息。 |
| LicenceKeys | 本次返回的激活码列表(可能为空)。 |
接口名称
UnBind
DLL调用
long UnBind(string userCode, string softCode, string softVersion, string dealerCode);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| userCode | 字符串 | 用户码。 |
| softCode | 字符串 | 软件码。 |
| softVersion | 字符串 | 软件版本。 |
| dealerCode | 字符串 | 经销商码。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
long result = UnBind(instance, "userCode", "softCode", "1.0.0", "dealerCode");
if (result != 0) {
char* json = GetStringFromPtr(result);
printf("解绑结果: %s\n", json);
FreeStringPtr(result);
}
Python
# 待补充
返回值
成功返回 JSON 字符串格式的解绑结果;失败返回 0。
注意事项
- 返回的字符串指针需要调用 FreeStringPtr 接口释放内存。
- 返回的激活码可以用于二次授权
