recharge.md 1.2 KB

充值接口

请求地址

{API_URL}

请求参数

字段名称 类型 长度 必要 描述
itype string 4 2 = 上下分消息
authcode string 32 代理标识,由厂商配发
authkey string 32 代理秘钥,由厂商配发
account string 32 玩家账号
score double 8 转账金额(负数玩家上分,正数玩家下分,此金额为实际分数)

示例

  • URL:

    • {API_URL}
  • HTTP Method(请求方式):

    • POST
  • 表单数据:

    Content-Type: application/x-www-form-urlencoded

    itype: 2,
    authcode: test001,
    authkey: 123456,
    account: 0166306192,
    score: -7.77
    

返回结果

字段名称 类型 长度 说明
ret int 4 -1表示成功,非-1表示失败
info string 128 返回结果说明

返回格式

{
    "ret": -1,
    "info": "ok",
}