简要描述:

  • 完整检测报告

请求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": []
}

错误时返回:

备注: