等级成就.md 2.4 KB

请求URL

  • GET achievement/info

参数

返回示例

{
    "result":1,
    "code":0,
    "msg":"成功",
    "data":{
		"level": {
			"level": 1,
			"logo": ""
		},
		"score": 4,
		"exp": 20,
		"next_level_exp": 30,
        "all_achievement_count":15,
        "get_achievement_count":3,
        "get_achievement_percent":20,
        "get_achievement_list":[
            {
                "id":2,
                "series_id":1,
                "logo":"",
                "name":"燃脂达人Ⅱ",
                "reward_exp":5,
                "reward_score":1,
                "condition_count":1000,
                "created_at":"2020-10-14 15:50:08"
				"series_count": 2        // 该系列累计获得多少个
				"series_name": "燃脂达人" // 系列名称
            },
            {
                "id":6,
                "series_id":2,
                "logo":"",
                "name":"持之以恒Ⅰ",
                "reward_exp":10,
                "reward_score":2,
                "condition_count":1,
                "created_at":"2020-10-14 15:49:52"
            }
        ],
        "remain_achievement_list":[
            {
                "id":3,
                "series_id":1,
                "logo":"",
                "name":"燃脂达人Ⅲ",
                "reward_exp":10,
                "reward_score":2,
                "condition_count":2000,
                "condition_progress":1920,
                "created_at":null,
                "condition_detail":"累计消耗 2000 kal",
                "condition_measure":"kal"
            },
            {
                "id":7,
                "series_id":2,
                "logo":"",
                "name":"持之以恒Ⅱ",
                "reward_exp":10,
                "reward_score":2,
                "condition_count":7,
                "condition_progress":1,
                "created_at":null,
                "condition_detail":"累计 7 天 "单天运动时长达30min"",
                "condition_measure":"天"
            },
            {
                "id":11,
                "series_id":3,
                "logo":"",
                "name":"签到能手Ⅰ",
                "reward_exp":5,
                "reward_score":1,
                "condition_count":7,
                "condition_progress":0,
                "created_at":null,
                "condition_detail":"累计登陆 7 天",
                "condition_measure":"天"
            }
        ]
    }
}