Skip to content

公共参数

公共参数

所有 API 请求需包含以下公共参数:

参数类型必填说明
appKeystring项目 App Key
timestampnumber当前时间戳(秒或毫秒),有效窗口 5 分钟
signstring请求签名

响应格式

所有 API 统一返回 JSON 格式:

json
{
  "success": true,
  "code": 200,
  "msg": "OK",
  "data": { ... }
}

错误时:

json
{
  "success": false,
  "code": 401,
  "msg": "Invalid sign"
}

常见错误码

错误码说明
400请求参数错误
401签名校验失败或请求已过期
403App Secret 未配置
404App Key 无效
500服务器内部错误