Skip to content

IP 解绑 POST

解绑单码卡密或用户账号的 IP 地址,允许在新 IP 下登录。

请求方法: POST  Content-Type: application/x-www-form-urlencoded

💡 SDK 快速接入

官方 SDK 已支持此接口,您可以直接使用 SDK 一键调用,无需手动处理加密和签名。

对接示例也已支持此接口

SDK 调用示例

python
# 单码 IP 解绑
result = verify.ip_unbind_kami(card)
# 用户 IP 解绑
result = verify.ip_unbind_user('username', 'password')
javascript
// 单码 IP 解绑
const result = await verify.ipUnbindKami(card);
// 用户 IP 解绑
const result2 = await verify.ipUnbindUser('username', 'password');
java
// 单码 IP 解绑
T3Verify.T3Result result = verify.ipUnbindKami(card);
// 用户 IP 解绑
T3Verify.T3Result result2 = verify.ipUnbindUser("username", "password");
csharp
// 单码 IP 解绑
var result = verify.IpUnbindKami(card);
// 用户 IP 解绑
var result2 = verify.IpUnbindUser("username", "password");
php
// 单码 IP 解绑
$result = $verify->ipUnbindKami($card);
// 用户 IP 解绑
$result = $verify->ipUnbindUser('username', 'password');

前提条件

程序需开启「IP 验证」和「IP 解绑」功能。

单码卡密模式

参数类型必填说明
kamistring必填单码卡密值
tnumber条件必填秒级 Unix 时间戳
sstring条件必填请求签名
safe_codestring可选数据验证码

用户模式

参数类型必填说明
userstring必填用户名
passstring必填密码
tnumber条件必填秒级 Unix 时间戳
sstring条件必填请求签名
safe_codestring可选数据验证码

成功响应

jsonc
{
  "code": "200",           // 状态码
  "msg": "IP解绑成功"      // 结果消息
}
txt
IP解绑成功

错误列表

业务错误

错误消息原因
卡密不可为空单码模式未传 kami
用户名不可为空用户模式未传 user
密码不可为空用户模式未传 pass
程序未开启IP验证程序未开启 IP 验证功能
卡密不存在 / 卡密被禁用 / 卡密未激活 / 卡密已到期卡密状态异常
用户不存在 / 用户名或密码错误 / 用户被禁用用户状态异常
请先充值后使用 / 用户使用时间已到期用户未激活或已过期

通用错误

错误消息原因
程序未开启 / 接口未开启程序或接口未启用
时间戳参数不可为空开启时间戳验证但未传 t
验证数据已失效,请重试时间戳校验失败(排障指南
签名参数不可为空开启签名验证但未传 s
签名有误签名校验失败

T3 网络验证 WebAPI 开发文档