简要描述:

案例详情

请求域名:

  • http://xx.com

请求URL:

POST/plugin.case-library.api.case.get-case-detail

参数:

参数名 是否必须 类型 说明
id int 案例id

返回参数说明:

参数名 类型 说明
case[id] int 热门案例id
case[case_name] string 案例名
case[img] string 案例图标(img_src绝对路径)
case[img_mini] string 小程序二维码(img_mini_src绝对路径)
case[img_h5] string 公众号二维码(img_h5_src绝对路径)
case[read_num] int 浏览量
case[content] int 案例简介
case[screen_shot] array 案例截图组合(screen_shot_src绝对路径组合)
case[score] int 案例评分
case[total_level] int 案例总评论数
case[five_level] int 案例五星评论数
case[four_level] int 案例四星评论数
case[three_level] int 案例三星评论数
case[two_level] int 案例二星评论数
case[one_level] int 案例一星评论数
case[label] array 案例标签(id:标签id,label_name:标签名)
case[member_id] int 发布者id
case[member][nickname] string 发布者昵称
case[member][avatar] string 发布者头像
case[comment] array 案例评论信息
comment[id] int 评论id
comment[case_id] int 案例id
comment[member_id] int 评论人id
comment[level] int 评分
comment[content] string 评论内容
comment[created_at] string 评论时间
comment[member] array 评论人信息(nickname:昵称,avatar:头像)
comment[reply] array 评论回复信息
comment[reply][id] int 回复id
comment[reply][comment_id] int 主评论id
comment[reply][reply_id] int 回复的回复id(如果该评论回复的是主评论,则为0)
comment[reply][content] string 回复内容
comment[reply][created_at] string 评论时间
comment[reply][member] array 回复人信息(nickname:昵称,avatar:头像)
comment[reply][reply_member] array 上一条回复人的信息(nickname:昵称,avatar:头像)
hotCases array 热门案例8个(H5端就叫【其他人还在看】)
hotCases[id] int 热门案例id
hotCases[case_name] string 案例名
hotCases[img] string 案例图标(img_src绝对路径)
hotCases[read_num] int 浏览量
hotCases[level] float 评分数
advert array 广告位
advert[ad3][pc_img] string 广告位3图片链接
advert[ad3][url] string 广告位3跳转链接

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"case": {
			"id": 9,
			"uniacid": 1,
			"case_name": "案例2",
			"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"img_mini": "",
			"img_h5": "",
			"member_id": 164932,
			"content": "简介简介",
			"screen_shot": [
				"newimage/5faf297433e23055783a7956c0f01865.jpg"
			],
			"is_open": 1,
			"is_recommend": 1,
			"is_hot": 1,
			"created_at": "2020-12-03 16:12:47",
			"updated_at": "2020-12-17 17:37:38",
			"province_id": 440000,
			"city_id": 440100,
			"read_num": 61,
			"score": 4.5,
			"total_level": 6,
			"five_level": 4,
			"four_level": 1,
			"three_level": 1,
			"two_level": 0,
			"one_level": 0,
			"comment": [
				{
					"id": 1,
					"case_id": 9,
					"member_id": 164932,
					"level": 5,
					"content": "123123123",
					"created_at": "2020-11-30 16:56:12",
					"deleted_at": null,
					"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李李李"
					},
					"reply": [
						{
							"id": 1,
							"comment_id": 1,
							"reply_id": 0,
							"member_id": 164932,
							"content": "物流",
							"created_at": "2020-11-30 16:58:00",
							"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李李李"
							},
							"reply_member": null
						},
						{
							"id": 2,
							"comment_id": 1,
							"reply_id": 1,
							"member_id": 163805,
							"content": "物流",
							"created_at": "2020-11-30 16:58:00",
							"member": {
								"uid": 163805,
								"nickname": "售后客服-丽唧唧",
								"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/hzgRzL39o1aFgMPIZtBiczDmwicibkBibsaPCnUGic7gIjIibvRNFcAqTE1XBFVricXvicSWUdWq1o2qoHYDAlP8PbicK7Q/132",
								"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/hzgRzL39o1aFgMPIZtBiczDmwicibkBibsaPCnUGic7gIjIibvRNFcAqTE1XBFVricXvicSWUdWq1o2qoHYDAlP8PbicK7Q/132",
								"username": "售后客服-丽唧唧"
							},
							"reply_member": null
						}
					]
				},
				{
					"id": 2,
					"case_id": 9,
					"member_id": 164932,
					"level": 4,
					"content": "123123123",
					"created_at": "2020-11-30 16:56:20",
					"deleted_at": null,
					"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李李李"
					},
					"reply": []
				},
				{
					"id": 4,
					"case_id": 9,
					"member_id": 164932,
					"level": 5,
					"content": "这个案例真不错s",
					"created_at": "2020-12-10 14:12:47",
					"deleted_at": null,
					"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李李李"
					},
					"reply": []
				},
				{
					"id": 5,
					"case_id": 9,
					"member_id": 164932,
					"level": 5,
					"content": "这个案例真不错s",
					"created_at": "2020-12-10 14:12:50",
					"deleted_at": null,
					"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李李李"
					},
					"reply": []
				},
				{
					"id": 6,
					"case_id": 9,
					"member_id": 164932,
					"level": 5,
					"content": "这个案例真不错s",
					"created_at": "2020-12-10 14:12:54",
					"deleted_at": null,
					"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李李李"
					},
					"reply": [
						{
							"id": 3,
							"comment_id": 6,
							"reply_id": 0,
							"member_id": 164932,
							"content": "我也觉得",
							"created_at": "2020-12-10 14:20:53",
							"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李李李"
							},
							"reply_member": null
						},
						{
							"id": 4,
							"comment_id": 6,
							"reply_id": 3,
							"member_id": 164932,
							"content": "+1",
							"created_at": "2020-12-10 14:21:40",
							"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李李李"
							},
							"reply_member": null
						}
					]
				}
			],
			"screen_shot_src": [
				"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5faf297433e23055783a7956c0f01865.jpg"
			],
			"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"img_mini_src": "",
			"img_h5_src": "",
			"second_category": [
				{
					"id": 31,
					"category_name": "子分类1",
					"pivot": {
						"case_id": 9,
						"category_second": 3
					}
				}
			],
			"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李李李"
			},
			"label": [
				{
					"id": 1,
					"uniacid": 1,
					"label_name": "标签1",
					"created_at": "2020-12-03 16:05:00",
					"updated_at": "2020-12-03 16:05:00",
					"pivot": {
						"case_id": 9,
						"label_id": 1
					}
				},
				{
					"id": 3,
					"uniacid": 1,
					"label_name": "标签3",
					"created_at": "2020-12-03 16:13:11",
					"updated_at": "2020-12-03 16:13:11",
					"pivot": {
						"case_id": 9,
						"label_id": 3
					}
				},
				{
					"id": 4,
					"uniacid": 1,
					"label_name": "标签4",
					"created_at": "2020-12-03 16:13:14",
					"updated_at": "2020-12-03 16:13:14",
					"pivot": {
						"case_id": 9,
						"label_id": 4
					}
				}
			],
			"province": {
				"id": 440000,
				"areaname": "广东省",
				"parentid": 0,
				"level": 1
			},
			"city": {
				"id": 440100,
				"areaname": "广州市",
				"parentid": 440000,
				"level": 2
			}
		},
		"hotCase": [
			{
				"id": 9,
				"case_name": "案例2",
				"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
				"read_num": 61,
				"member_id": 164932,
				"created_at": "2020-12-03 16:12:47",
				"screen_shot_src": [],
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
				"img_mini_src": "",
				"img_h5_src": "",
				"level": 4.5
			},
			{
				"id": 10,
				"case_name": "案例112312",
				"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
				"read_num": 3,
				"member_id": 163779,
				"created_at": "2020-12-03 16:13:25",
				"screen_shot_src": [],
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
				"img_mini_src": "",
				"img_h5_src": "",
				"level": 0
			},
			{
				"id": 11,
				"case_name": "12312321",
				"img": "newimage/12faf451347155a3e86ea12facedb544.jpg",
				"read_num": 0,
				"member_id": 163802,
				"created_at": "2020-12-15 10:42:27",
				"screen_shot_src": [],
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/12faf451347155a3e86ea12facedb544.jpg",
				"img_mini_src": "",
				"img_h5_src": "",
				"level": 0
			}
		]
		"advert": {
			"ad3": {
				"pc_img": "",
				"url": ""
			}
		}
	}
}

错误时返回:

{
	"result": 0,
	"msg": "",
	"data": []
}

备注:

  • 更多返回错误代码请看首页的错误代码描述