Page History

Getstephealthdetails

Last edited by 徐近程

返回

健康值详情页


URL: http://apiwjjtest.cnlive.com/Daren/family/getStepHealthDetails.action


请求方式: HTTP POST


请求参数说明:

参数名 参数类型 必选 参数说明
sid String true 用户sid
steps Integer false 用户步数
type String true 1-详情 2-兑换

返回格式: JSON


返回格式样例:

{
    "data": {
        "dayHealthValue": "3500",  //弹框兑换的健康值(为零时不弹框)
        "healthExchangeList": [
            {
                "exchangeState": "1",  //1-已兑换 2-没有兑换
                "healthValue": "500",   //健康值:500 1000 2000
                "stepNum": "5000"      //步数:5000 10000 20000
            },
            {
                "exchangeState": "1",
                "healthValue": "1000",
                "stepNum": "10000"
            },
            {
                "exchangeState": "1",
                "healthValue": "2000",
                "stepNum": "20000"
            }
        ],
        "healthValue": "6500",   //用户总健康值
        "step": "22708"          //用户今日步数
    },
    "errorCode": "0",
    "errorMessage": "成功"
}
错误码:
{
    "data": {},
    "errorCode": "403",
    "errorMessage": "缺少必要参数"
}

{
    "data": {},
    "errorCode": "500",
    "errorMessage": "服务器异常"
}