简要描述:

  • 检测报告

请求URL:

GET/&route=plugin.skin-check.api.skin-check.check-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 指标结果描述
以下为article(攻略)参数说明 信息为空不显示该模块 :----- -----
id int 文章id
title string 文章标题
desc string 文章描述
以下为adviser(顾问)参数说明 信息为空不显示该模块 :----- -----
uid int 会员id
mobile string 手机号
nickname string 昵称
avatar string 头像
real_name string 姓名
yz_member.wechat string 微信号
business_card.id int 名片id
以下为label(标签导航)参数说明 信息为空不显示该模块 :----- -----
id int 标签id
label_name string 标签名
以下为goods(商品)参数说明 信息为空不显示该模块 :----- -----
id int 商品id
title string 商品名
thumb string 商品图片
market_price float 原价
price float 现价
label.label_name string 商品的标签
以下为beat参数说明 :----- :----- -----
beat float 击败人数的百分比
以下为question参数说明 :----- :----- -----
question array 主要问题的指标名数组
business_card int 名片插件是否开启,1开0关

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"report": {
			"id": 2,
			"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": 84,
			"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": [
				{
					"target_name": "肤龄",
					"type_id": 1,
					"key": "skinAge",
					"target_value": [],
					"value": "23",
					"value_desc": ""
				},
				{
					"target_name": "肤色",
					"type_id": 2,
					"key": "skinColor",
					"target_value": {
						"1": "透白",
						"2": "白皙",
						"3": "自然",
						"4": "小麦",
						"5": "暗沉",
						"6": "黝黑"
					},
					"value": "5",
					"value_desc": "暗沉"
				},
				{
					"target_name": "肤质",
					"type_id": 2,
					"key": "skinType",
					"target_value": [
						"油性皮肤",
						"干性皮肤",
						"中性皮肤",
						"混合性皮肤"
					],
					"value": "3",
					"value_desc": "混合性皮肤"
				},
				{
					"target_name": "黑头",
					"type_id": 3,
					"key": "skinBlackHeadsDesc",
					"target_value": {
						"1": "轻度",
						"2": "中度",
						"3": "重度"
					},
					"value": "1",
					"value_desc": "轻度"
				},
				{
					"target_name": "痘痘",
					"type_id": 3,
					"key": "skinPimpleDesc",
					"target_value": {
						"1": "轻度",
						"2": "中度",
						"3": "重度"
					},
					"value": "1",
					"value_desc": "轻度"
				},
				{
					"target_name": "痘印",
					"type_id": 3,
					"key": "skinAcneDesc",
					"target_value": {
						"1": "轻度",
						"2": "中度",
						"3": "重度"
					},
					"value": "2",
					"value_desc": "中度"
				},
				{
					"target_name": "痣",
					"type_id": 3,
					"key": "skinMoleDesc",
					"target_value": {
						"1": "轻度",
						"2": "中度",
						"3": "重度"
					},
					"value": "1",
					"value_desc": "轻度"
				},
				{
					"target_name": "色斑",
					"type_id": 3,
					"key": "skinSpotDesc",
					"target_value": {
						"1": "轻度",
						"2": "中度",
						"3": "重度"
					},
					"value": "1",
					"value_desc": "轻度"
				}
			]
		},
		"article": [
			{
				"id": 2,
				"title": "safawsdfasdf",
				"desc": "",
				"liked": 0,
				"virtual_at": "1970-01-01"
			},
			{
				"id": 4,
				"title": "付费测试付费测试付费测试付费测试付费测试付费测试付费测试付费测试",
				"desc": "付费测试付费测试付费测试付费测试付费测试付费测试付费测试付费测试",
				"liked": 0,
				"virtual_at": "1970-01-01"
			},
			{
				"id": 5,
				"title": "测试测试测试",
				"desc": "2323232323",
				"liked": null,
				"virtual_at": "1970-01-01"
			}
		],
		"adviser": [
			{
				"uid": 163800,
				"mobile": "",
				"nickname": "文惠",
				"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/gHBPKnH6LxzGf2hknhr6CuqbIFJt8DDZwqSVKaRibia6oSeuTyZ2K3zrvnnIYYLk4NvicYcvHQEwaphWEXk1cj4FQ/132",
				"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/gHBPKnH6LxzGf2hknhr6CuqbIFJt8DDZwqSVKaRibia6oSeuTyZ2K3zrvnnIYYLk4NvicYcvHQEwaphWEXk1cj4FQ/132",
				"username": "文惠",
				"realname": "文惠",
				"yz_member": {
					"member_id": 163800,
					"wechat": ""
				}
				"business_card": {
					"id": 1,
					"member_id": 164932
				}
			},
			{
				"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李李李",
				"yz_member": {
					"member_id": 164932,
					"wechat": "123213"
				},
				"business_card": {
					"id": 1,
					"member_id": 164932
				}
			}
		],
		"label": {
			"0": {
				"id": 1,
				"label_name": "活力",
				"goods_count": 1
			},
			"1": {
				"id": 2,
				"label_name": "抗衰老",
				"goods_count": 2
			},
			"2": {
				"id": 3,
				"label_name": "提亮肤色",
				"goods_count": 3
			}
		},
		"goods": [
			{
				"id": 115,
				"title": "测试商品发布",
				"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
				"market_price": "200.00",
				"price": "100.00",
				"cost_price": "0.00",
				"stock": 253,
				"real_sales": 31,
				"show_sales": 31,
				"virtual_sales": 0,
				"has_option": 1,
				"plugin_id": 0,
				"status_name": null,
				"label": [
					{
						"id": 3,
						"label_name": "提亮肤色",
						"pivot": {
							"goods_id": 115,
							"label_id": 3
						}
					}
				]
			}
		],
		"beat": 100,
		"question": [
			"痘印"
		],
		"business-card": 1
	}
}
{
	"result": 0,
	"msg": "未找到检测报告信息",
	"data": []
}

错误时返回:

备注: