Appearance
修改核心数据 POST
修改单码卡密或用户的核心数据(core 字段)。
请求方法:
POSTContent-Type:application/x-www-form-urlencoded
💡 SDK 快速接入
官方 SDK 已支持此接口,您可以直接使用 SDK 一键调用,无需手动处理加密和签名。
SDK 调用示例
python
# 通过卡密修改
result = verify.modify_core_by_kami(card, '核心数据内容')
if result['success']:
print(f"{result['msg']}")javascript
const result = await verify.modifyCoreByKami(card, '核心数据内容');
if (result.success) console.log(result.msg);java
T3Verify.T3Result result = verify.modifyCoreByKami(card, "核心数据内容");
if (result.success) System.out.println(result.msg);csharp
var result = verify.ModifyCoreByKami(card, "核心数据内容");
if (result.Success) Console.WriteLine(result.Msg);php
$result = $verify->modifyCoreByKami($card, '核心数据内容');
if ($result['success']) echo $result['msg'] . "\n";单码卡密模式
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
kami | string | 必填 | 单码卡密值 |
core | string | 必填 | 新的核心数据内容(≤ 1000 字符,年度会员不限) |
t | number | 条件必填 | 秒级 Unix 时间戳 |
s | string | 条件必填 | 请求签名 |
safe_code | string | 可选 | 数据验证码 |
用户模式
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
user | string | 必填 | 用户名 |
pass | string | 必填 | 密码 |
core | string | 必填 | 新的核心数据内容(≤ 1000 字符,年度会员不限) |
t | number | 条件必填 | 秒级 Unix 时间戳 |
s | string | 条件必填 | 请求签名 |
safe_code | string | 可选 | 数据验证码 |
成功响应
jsonc
{
"code": "200", // 状态码
"msg": "修改成功" // 结果消息
}txt
修改成功错误列表
业务错误
| 错误消息 | 原因 |
|---|---|
卡密不可为空 / 用户名不可为空 / 密码不可为空 | 缺少必要参数 |
核心数据不可大于1000字符 | core 长度超限(非年度会员) |
卡密不存在 / 卡密被禁用 / 卡密未激活 / 卡密已到期 | 卡密状态异常 |
用户不存在 / 用户名或密码错误 / 用户被禁用 | 用户状态异常 |
请先充值后使用 / 用户使用时间已到期 | 用户未激活或已过期 |
通用错误
| 错误消息 | 原因 |
|---|---|
程序未开启 / 接口未开启 | 程序或接口未启用 |
时间戳参数不可为空 | 开启时间戳验证但未传 t |
验证数据已失效,请重试 | 时间戳校验失败(排障指南) |
签名参数不可为空 | 开启签名验证但未传 s |
签名有误 | 签名校验失败 |