|
|
## 1、有货币领取活动##
|
|
|
|
|
|
有货币领取活动(method=app.activity.receviceYohoCoin)
|
|
|
#### 公共请求参数
|
|
|
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|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|string|否|20000904|empty string|用户uid|
|
|
|
|token|string|否|7d62e62e5351b49df4d6a4e4ba89e299|empty string|有货币领取活动的token|
|
|
|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://127.0.0.1:8080/gateway?method=app.activity.receviceYohoCoin&uid=20000904&token=7d62e62e5351b49df4d6a4e4ba89e299&debug=XYZ
|
|
|
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"code": 200,
|
|
|
"msg": "恭喜您,成功领取有货币!",
|
|
|
"popupImg": "http://img11.static.yhbimg.com\yhb-img01/2016/08/18/16/0183c73e7652d6aa46609237dee7dcc957.jpg"
|
|
|
},
|
|
|
"md5": "962dcb86a79e4631d9f65c5de3c48327",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"code": 503,
|
|
|
"msg": "重复领取",
|
|
|
"popupImg": "http://img10.static.yhbimg.com\yhb-img01/2016/08/18/16/01331a2c4ae0c2072980a826617365b603.jpg"
|
|
|
},
|
|
|
"md5": "ec5730b851b75b5595a8e21a3de666c5",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"code": 504,
|
|
|
"msg": "已领取完",
|
|
|
"popupImg": "http://img10.static.yhbimg.com\yhb-img01/2016/08/18/16/01331a2c4ae0c2072980a826617365b603.jpg"
|
|
|
},
|
|
|
"md5": "6ad26f92e0010aec6d7fc46040429200",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"message": "该有货币领取活动不存在",
|
|
|
"code": 407
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"code": 501,
|
|
|
"msg": "活动未开始",
|
|
|
"popupImg": "http://img10.static.yhbimg.com\yhb-img01/2016/08/18/16/01331a2c4ae0c2072980a826617365b603.jpg"
|
|
|
},
|
|
|
"md5": "760226b146f0f1f3156e7c330374ef23",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"code": 502,
|
|
|
"msg": "活动已结束",
|
|
|
"popupImg": "http://img10.static.yhbimg.com\yhb-img01/2016/08/18/16/01331a2c4ae0c2072980a826617365b603.jpg"
|
|
|
},
|
|
|
"md5": "35c6f0d11dd8bf074f678a81f0a017e4",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|