...
|
...
|
@@ -89,10 +89,10 @@ code为200即为成功,否则是失败。 |
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"code": 200,
|
|
|
"message": "success."
|
|
|
"currency": "200",
|
|
|
"uid": 50030199
|
|
|
},
|
|
|
"md5": "012bd8dd78cc12fa3ec90722e5af55b5",
|
|
|
"md5": "a2f546011378a51fffc9f09e56ae6f22",
|
|
|
"message": "ok"
|
|
|
}
|
|
|
```
|
...
|
...
|
@@ -169,10 +169,10 @@ code为200即为成功,否则是失败。 |
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"code": 200,
|
|
|
"message": "success."
|
|
|
"currency": "200",
|
|
|
"uid": 50030199
|
|
|
},
|
|
|
"md5": "012bd8dd78cc12fa3ec90722e5af55b5",
|
|
|
"md5": "a2f546011378a51fffc9f09e56ae6f22",
|
|
|
"message": "ok"
|
|
|
}
|
|
|
```
|
...
|
...
|
@@ -408,6 +408,14 @@ code为200即为成功,否则是失败。 |
|
|
"num": -1000,
|
|
|
"type": 21,
|
|
|
"title": "兑换电子券"
|
|
|
},
|
|
|
{
|
|
|
"date": "2015-12-21 19:18:40",
|
|
|
"key": "10",
|
|
|
"message": "mars点数兑换失败",
|
|
|
"num": 1000,
|
|
|
"type": 22,
|
|
|
"title": "mars点数兑换失败"
|
|
|
}
|
|
|
],
|
|
|
"limit": 20,
|
...
|
...
|
@@ -420,4 +428,82 @@ code为200即为成功,否则是失败。 |
|
|
}
|
|
|
```
|
|
|
|
|
|
## 5、兑换失败返回被使用的mars点数##
|
|
|
|
|
|
兑换失败返回被使用的mars点数(method=app.marspoint.return)
|
|
|
#### 公共请求参数
|
|
|
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|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|
|
|
|
|num|int|否|100|0|mars点数|
|
|
|
|type|int|否|17或者18|0|mars点数兑换失败:22|
|
|
|
|orderCode|String|否|123456789|0|订单号|
|
|
|
|pid|int|是|100|0|erp操作人员的uid|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.217:8080/gateway?method=app.marspoint.return&debug=XYZ
|
|
|
|
|
|
入口参数body
|
|
|
```json
|
|
|
{
|
|
|
"uid": 50030199,
|
|
|
"num": 150,
|
|
|
"type": 22,
|
|
|
"orderCode": 1234567890,
|
|
|
"pid": 11111111
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"currency": "200",
|
|
|
"uid": 50030199
|
|
|
},
|
|
|
"md5": "a2f546011378a51fffc9f09e56ae6f22",
|
|
|
"message": "ok"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"code": 400,
|
|
|
"message": "请先登录"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"code": 402,
|
|
|
"message": "获取的mars点数不合法"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"code": 403,
|
|
|
"message": "type不合法"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"code": 406,
|
|
|
"message": "orderCode不能为空"
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|