简要描述:

  • 测肤记录

请求URL:

GET/&route=plugin.skin-check.api.skin-check.poster

参数:

参数名 是否必须 类型 说明
report_id int 检测报告id
ingress string 小程序需传‘weChatApplet’

返回参数 data说明:

参数名 是否必须 类型 说明
background string 背景图
style_data.type string 类型 logo(商城logo),avatar(头像),nickname(昵称),qr(二维码),score(测肤得分),result(测肤结果)
style_data.left string x轴
style_data.top string y轴
style_data.width string
style_data.height string
style_data.color string 颜色
style_data.font_color string 字体颜色
style_data.font_size string 字体大小
style_data.src string/array 所需数据,如果type是测肤结果,src参数为数组
以下src参数 :--- :----- -----
target.target_name string 指标名称
value string 测肤结果
value_desc string 测肤结果描述(如果为空,显示value的值)

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"background": "",
		"style_data": [
			{
				"type": "logo",
				"left": "158px",
				"top": "89px",
				"width": "80px",
				"height": "80px",
				"src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/10/D4uZa999psputsapuDASza5WAWfs9p.jpg"
			},
			{
				"type": "avatar",
				"left": "158px",
				"top": "89px",
				"width": "80px",
				"height": "80px",
				"src": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132"
			},
			{
				"type": "nickname",
				"left": "158px",
				"top": "89px",
				"width": "80px",
				"height": "80px",
				"font_size": "16px",
				"font_color": "red",
				"src": "A李李李"
			},
			{
				"type": "qr",
				"left": "158px",
				"top": "89px",
				"width": "80px",
				"height": "80px",
				"src": "https://shop.com/storage/app/public/skin-check/qr_code/1-mid-164932-report-2-width-80px.png"
			},
			{
				"type": "score",
				"left": "158px",
				"top": "89px",
				"width": "80px",
				"height": "80px",
				"color": "red",
				"src": 84
			},
			{
				"type": "result",
				"left": "158px",
				"top": "89px",
				"width": "80px",
				"height": "80px",
				"color": "red",
				"font_size": "16px",
				"font_color": "red",
				"src": [
					{
						"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"
						}
					}
				]
			}
		]
	}
}

错误时返回:

备注: