- 好友
- 分享
- 精华
- 阅读权限
- 255
- 注册时间
- 2017-8-17
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
获取已购卡密
| 接口说明: | 获取已购卡密(DZ内置) |
接口详情 | 请求地址: | http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:sale | 请求方式: | GET | 返回格式: | JSON\XML /*默认返回JSON格式,如需返回XML格式,请在接口网址后面增加&output=xml参数*/ |
请求参数(所有参数值均URL加密后传输【注意GBK与UTF8编码区别】) | 参数 | 类型 | 是否必含 | 说明 | 示例 | token | [string] | 是 | token令牌(初始化用户登录获取) | 2b39JMyEmUNHqDxG_xinxiu__xin_xiu_ddyWn3OYaUvrE_xinxiu_4H6i
wm8DUUWwoTdJoh23LnceovVJArkjI12b | action | [string] | 是 | 接口方法 | sale_ls | do | [string] | 是 | 获取卡密类型,取值范围0-2,0代表取所有卡密,1代表取可用卡密,2代表已经使用卡密 | 2 |
请求示例(GET) | - http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:sale&token={token令牌}&action=sale_ls&do=2
复制代码 |
返回参数(所有接口返回数据含中文时“\u672c\u6846”,请用USC2进行解码) | 参数 | 类型 | 是否必含 | 说明 | 示例 | code | [number] | 是 | http状态码 | 200 | result | [string] | 是 | 错误信息状态码 | OK | count | [number] | 是 | 数组成员数 | 7 | data | [array] | 是 | 数组 | | data>>id | [string] | 是 | 充值卡密 | XX2018ZMJJA15789SKJCX | data>>typeid | [string] | 是 | 分类id | | data>>maketype | [string] | 是 | 生成方法 | | data>>makeruid | [string] | 是 | 拥有者uid | 9 | data>>price | [string] | 是 | 充值卡面值 | 100 | data>>extcreditskey | [string] | 是 | 充值积分类型 | 1 | data>>extcreditsval | [string] | 是 | 充值积分数量 | 100 | data>>status | [string] | 是 | 卡密类型,1为未使用,2为已使用 | 1 | data>>dateline | [string] | 是 | 生成时间 | 1543836662 | data>>cleardateline | [string] | 是 | 过期时间 | 1575372662 | data>>useddateline | [string] | 是 | 使用时间 | | data>>uid | [string] | 是 | 使用者uid | | sqltime | [string] | 是 | 页面执行时间(秒) | 0.0025s |
返回示例(JSON) | - {
- "code": 200,
- "result": "OK",
- "count": 7,
- "data": [{
- "id": "XX2018ZMJJA15789SKJCX",
- "typeid": "0",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543836662",
- "cleardateline": "1575372662",
- "useddateline": "0",
- "uid": "0"
- }, {
- "id": "XX2018JFLAL85464S5CUW",
- "typeid": "0",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543846272",
- "cleardateline": "1575382272",
- "useddateline": "0",
- "uid": "0"
- }, {
- "id": "XX2018XAJMM61978C58Y5",
- "typeid": "0",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543846617",
- "cleardateline": "1575382617",
- "useddateline": "0",
- "uid": "0"
- }, {
- "id": "XX2018WVHQJ37721WQF9V",
- "typeid": "0",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543846894",
- "cleardateline": "1575382894",
- "useddateline": "0",
- "uid": "0"
- }, {
- "id": "XX2018KUZDC83415HPGZ5",
- "typeid": "0",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543937763",
- "cleardateline": "1575473763",
- "useddateline": "0",
- "uid": "0"
- }, {
- "id": "XX2018FTTYJ95368DG6UD",
- "typeid": "1",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543937763",
- "cleardateline": "1575473763",
- "useddateline": "0",
- "uid": "0"
- }, {
- "id": "XX2018XAVTR44651R1ZT4",
- "typeid": "1",
- "maketype": "0",
- "makeruid": "9",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "status": "1",
- "dateline": "1543937763",
- "cleardateline": "1575473763",
- "useddateline": "0",
- "uid": "0"
- }],
- "sqltime": "0.0025s"
- }
复制代码 |
错误提示码 | 错误码查询地址:点击访问 | BUG提交:点击提交 | QQ交流群:281079920 |
|
|