文档
测试

校验充值兑换

POST
/plugin/ifGameGoldExchange/

接口描述

URL中IP、端口需替换服务器域名

请求头

参数名
类型
描述
必填
lr-app-appkey
string
AppKey游戏编辑页面获取
必填

请求参数

application/json
参数名
类型
描述
必填
recharge_cdk
string
充值CDK
必填

请求Body-Json示例

``` { "recharge_cdk":"12345678" } ```

响应参数

application/json
参数名
类型
描述
必填
code
int
代码: 200 成功 201参数错误、处理异常 202数据库错误
必填
type
int
类型: 11 充值码不可用 0成功 1参数错误、处理异常 2 AppKey错误或功能未启动
必填
id
int
订单ID
必填
specification
object
订单规格对象
必填
id
int
规格ID
必填
img
string
规格图片
必填
name
string
规格名称
必填
gold_num
string
支付金币数
必填
product_name
string
商品名称
必填
refill_num
string
充值面额、元、数量
必填
day_stock
string
天/发放量(不管)
必填
instruction
string
使用说明
必填
time
string
创建时间
必填

响应Json示例

``` { "code": 200, "type": 0, "id": 1, "specification":{ "id":1657229722607, "img":"http://xxx.com/folder/user/qrcode/2022061612/52bf13dded2b11ec936900ff485ca070.jpg", "name":"规格名称", "gold_num":"100", "product_name":"钻石", "refill_num":"100", "day_stock":"20", "instruction":"使用说明" }, "time":"2022-06-16 12:28:48" } ```