简要描述:
- 测肤记录
请求URL:
GET/&route=plugin.skin-check.api.skin-check.share-data
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
report_id | 是 | int | 检测报告id |
返回参数 data说明:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
report.id | 是 | int | 报告id |
report.check_img | 是 | string | 检测图片(相对地址) |
report.check_img_src | 是 | string | 检测图片(绝对地址) |
report.composite_score | 是 | string | 评分(颜值) |
report.member_id | 是 | int | 会员id |
report.member.nickname | 是 | string | 昵称 |
report.member.avatar | 是 | string | 头像 |
report_detail.value | 是 | string | 测试结果 |
report_detail.value_desc | 是 | string | 测试结果描述(为空的话显示value) |
report_detail.target.target_name | 是 | string | 指标名 |
beat | 是 | float | 击败百分比 |
question | 是 | array | 主要问题指标 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"report": {
"id": 2,
"check_img": "images/1/2020/10/h2C3yjbyLe2Ev1J1V3gbF5gOlLvZJb.jpg",
"member_id": 164932,
"composite_score": 84,
"check_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/10/h2C3yjbyLe2Ev1J1V3gbF5gOlLvZJb.jpg",
"member": {
"uid": 164932,
"nickname": "A李李李",
"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
"username": "A李李李"
}
},
"report_detail": [
{
"id": 17,
"report_id": 2,
"target_id": 1,
"value": "23",
"value_desc": "",
"target": {
"id": 1,
"target_name": "肤龄",
"key": "skinAge"
}
},
{
"id": 18,
"report_id": 2,
"target_id": 2,
"value": "5",
"value_desc": "暗沉",
"target": {
"id": 2,
"target_name": "肤色",
"key": "skinColor"
}
},
{
"id": 19,
"report_id": 2,
"target_id": 3,
"value": "3",
"value_desc": "混合性皮肤",
"target": {
"id": 3,
"target_name": "肤质",
"key": "skinType"
}
}
],
"beat": 0,
"question": []
}
}
错误时返回: