...
|
...
|
@@ -19,7 +19,7 @@ |
|
|
请求示例
|
|
|
http://192.168.102.217:8080/gateway?method=app.yohocoin.total&uid=50030141&debug=XYZ
|
|
|
|
|
|
### 响应(data里所有的字段返回都是string类型)
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
...
|
...
|
@@ -81,7 +81,7 @@ http://192.168.102.217:8080/gateway?method=app.marspoint.acquire&debug=XYZ |
|
|
}
|
|
|
```
|
|
|
|
|
|
### 响应(data里所有的字段返回都是string类型)
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
...
|
...
|
@@ -125,7 +125,7 @@ code为200即为成功,否则是失败。 |
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、兑换mars点数##
|
|
|
## 3、兑换mars点数##
|
|
|
|
|
|
兑换mars点数(method=app.marspoint.exchange)
|
|
|
#### 公共请求参数
|
...
|
...
|
@@ -161,7 +161,7 @@ http://192.168.102.217:8080/gateway?method=app.marspoint.exchange&debug=XYZ |
|
|
}
|
|
|
```
|
|
|
|
|
|
### 响应(data里所有的字段返回都是string类型)
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
...
|
...
|
@@ -204,3 +204,220 @@ code为200即为成功,否则是失败。 |
|
|
"message": "orderCode不能为空"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 4、mars点数明细接口##
|
|
|
|
|
|
mars点数(method=app.yohocoin.lists)
|
|
|
#### 公共请求参数
|
|
|
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息|
|
|
|
|app_version|float|10|否|1||APP版本|
|
|
|
|os_version|string|20|否|Android4.4||系统版本+机器型号|
|
|
|
|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)|
|
|
|
|screen_size|string|20|否|800x900||(手机尺寸)|
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|否|213|0|用户id|
|
|
|
|page|int|是|2|1|页数|
|
|
|
|limit|int|是|20|20|每页的记录数|
|
|
|
|queryType|int|是|0|0|0-所有;1-收入;2-支出|
|
|
|
|beginTime|String|是|2016-05-18|0|开始时间|
|
|
|
|endTime|String|是|2016-05-18|0|结束时间|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.217:8080/gateway?method=app.yohocoin.lists&uid=50030147&debug=XYZ
|
|
|
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"coinlist": [
|
|
|
{
|
|
|
"date": "2015-12-31 00:39:46",
|
|
|
"key": "10",
|
|
|
"message": "原有YOHO币10个,初始化变更",
|
|
|
"num": 1000,
|
|
|
"type": 1,
|
|
|
"title": "原有YOHO币%s个,初始化变更"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "订单取消退还:订单123456789",
|
|
|
"num": 1000,
|
|
|
"type": 2,
|
|
|
"title": "订单取消退还:订单%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "活动奖励",
|
|
|
"num": 1000,
|
|
|
"type": 3,
|
|
|
"title": "活动奖励"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "充值",
|
|
|
"num": -1000,
|
|
|
"type": 4,
|
|
|
"title": "充值"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "签到奖励",
|
|
|
"num": 1000,
|
|
|
"type": 5,
|
|
|
"title": "签到奖励"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "抽奖活动奖励",
|
|
|
"num": 1000,
|
|
|
"type": 6,
|
|
|
"title": "抽奖活动奖励"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "调研问卷奖励",
|
|
|
"num": 1000,
|
|
|
"type": 7,
|
|
|
"title": "调研问卷奖励"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "完善资料奖励",
|
|
|
"num": 1000,
|
|
|
"type": 8,
|
|
|
"title": "完善资料奖励"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "下单使用:订单123456789",
|
|
|
"num": -1000,
|
|
|
"type": 9,
|
|
|
"title": "下单使用:订单%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "退货退还:订单123456789",
|
|
|
"num": 10,
|
|
|
"type": 10,
|
|
|
"title": "退货退还:订单%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "活动赠送:订单123456789",
|
|
|
"num": 500,
|
|
|
"type": 11,
|
|
|
"title": "活动赠送:订单%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "抽奖使用",
|
|
|
"num": -50,
|
|
|
"type": 12,
|
|
|
"title": "抽奖使用"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "购买商品赠送:xxxx",
|
|
|
"num": -500,
|
|
|
"type": 13,
|
|
|
"title": "购买商品赠送:%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "晒单奖励:xxxxxx",
|
|
|
"num": 1000,
|
|
|
"type": 14,
|
|
|
"title": "购买商品赠送:%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "补差价:xxxxx",
|
|
|
"num": -50,
|
|
|
"type": 15,
|
|
|
"title": "补差价:%s"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "积分过期",
|
|
|
"num": -1000,
|
|
|
"type": 16,
|
|
|
"title": "积分过期"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "你今日已在\"costa咖啡奥体店\"完成签到",
|
|
|
"num": 1000,
|
|
|
"type": 17,
|
|
|
"title": "地点签到"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "xxx的酒吧可以看到黄浦江两边的超赞",
|
|
|
"num": 1000,
|
|
|
"type": 18,
|
|
|
"title": "合格评价"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "xxxxxxxxxx",
|
|
|
"num": -500,
|
|
|
"type": 19,
|
|
|
"title": "兑换实物"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "50元充值话费(中国移动/中国联通/中国电信)",
|
|
|
"num": -1000,
|
|
|
"type": 20,
|
|
|
"title": "兑换话费"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "xxxxxxxxx",
|
|
|
"num": -1000,
|
|
|
"type": 21,
|
|
|
"title": "兑换电子券"
|
|
|
}
|
|
|
],
|
|
|
"limit": 20,
|
|
|
"page": 1,
|
|
|
"page_total": 2,
|
|
|
"total": 2
|
|
|
},
|
|
|
"md5": "4d83a2697b11ba3faf4abf9133941502",
|
|
|
"message": "yoho coin list"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|