健康值详情页(小程序使用)
URL: http://apiwjjtest.cnlive.com/Daren/family/getSmallHealthDetails.action
请求方式: HTTP POST
请求参数说明:
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| sid | String | false | 用户sid |
| steps | Integer | false | 用户步数 |
返回格式: JSON
返回格式样例:
{
"data": {
"dayHealthValue": "0",
"healthExchangeList": [
{
"exchangeState": "1", //1-已兑换 2-没有兑换
"healthValue": "250", //健康值:250 500 1000
"stepNum": "5000" ////步数:5000 10000 20000
},
{
"exchangeState": "2",
"healthValue": "500",
"stepNum": "10000"
},
{
"exchangeState": "2",
"healthValue": "1000",
"stepNum": "20000"
}
],
"healthValue": "521559", //用户总健康值
"step": "0"
},
"errorCode": "0",
"errorMessage": "成功"
}
错误码:
{
"data": {},
"errorCode": "403",
"errorMessage": "缺少必要参数"
}
{
"data": {},
"errorCode": "500",
"errorMessage": "服务器异常"
}