简要描述:
- 完整检测报告
请求URL:
GET/&route=plugin.skin-check.api.skin-check.complete-report
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
report_id | 是 | int | 检测报告id |
返回参数 data说明:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
以下为report参数说明 | :--- | :----- | ----- |
id | 是 | int | 检测报告id |
check_img | 是 | string | 检测图片(相对路径) |
check_img_src | 是 | string | 检测图片(绝对路径) |
composite_score | 是 | float | 分数 |
member.uid | 是 | int | 会员id |
member.mobile | 是 | string | 会员手机 |
member.nickname | 是 | string | 昵称 |
member.avatar | 是 | string | 头像 |
reportDetail.target_name | 是 | string | 指标名 |
reportDetail.type_id | 是 | string | 指标类型 |
reportDetail.key | 是 | string | 指标key |
reportDetail.target_value | 是 | array | 指标值(键值是指标值的id) |
reportDetail.value | 是 | string | 指标结果值 |
reportDetail.value_desc | 是 | string | 指标结果描述 |
reportDetail.value_null | 是 | int | 指标结果数量,没有数量的为null,有数量的为0-n |
reportDetail.explain | 是 | string | 指标说明 |
reportDetail.explain_img | 是 | string | 指标图片 |
以下为beat参数说明 | :----- | :----- | ----- |
beat | 是 | float | 击败人数的百分比 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"report": {
"id": 4,
"check_img": "images/1/2020/10/h2C3yjbyLe2Ev1J1V3gbF5gOlLvZJb.jpg",
"check_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/10/h2C3yjbyLe2Ev1J1V3gbF5gOlLvZJb.jpg",
"composite_score": 94,
"member": {
"uid": 164932,
"mobile": "1",
"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李李李"
},
"reportDetail": {
"skinAge": {
"target_name": "肤龄",
"target_value": [],
"key": "skinAge",
"type_id": 1,
"value": "29",
"value_desc": "",
"explain": "1264357568567",
"explain_img": "",
},
"skinColor": {
"target_name": "肤色",
"target_value": {
"1": "透白",
"2": "白皙",
"3": "自然",
"4": "小麦",
"5": "暗沉",
"6": "黝黑"
},
"key": "skinColor",
"type_id": 2,
"value": "3",
"value_desc": "自然",
"explain": ""
},
"skinType": {
"target_name": "肤质",
"target_value": [
"油性皮肤",
"干性皮肤",
"中性皮肤",
"混合性皮肤"
],
"key": "skinType",
"type_id": 2,
"value": "1",
"value_desc": "干性皮肤",
"explain": ""
},
"skinSpotDesc": {
"target_name": "色斑",
"target_value": {
"1": "轻度",
"2": "中度",
"3": "重度"
},
"key": "skinSpotDesc",
"type_id": 3,
"value": "1",
"value_desc": "轻度",
"explain": ""
},
"skinWrinkle": {
"target_name": "皱纹",
"target_value": {
"1": "轻度",
"2": "中度",
"3": "重度"
},
"key": "skinWrinkle",
"type_id": 3,
"value": "1",
"value_desc": "轻度",
"explain": ""
},
"skinForeHeadWrinkle": {
"target_name": "抬头纹",
"target_value": [],
"key": "skinForeHeadWrinkle",
"type_id": 4,
"value": "1",
"value_desc": "有",
"explain": ""
},
"skinNasolabialFolds": {
"target_name": "法令纹",
"target_value": [],
"key": "skinNasolabialFolds",
"type_id": 4,
"value": "1",
"value_desc": "有",
"explain": ""
}
}
},
"beat": 100
}
}
{
"result": 0,
"msg": "未找到信息",
"data": []
}
错误时返回: