简要描述:

  • 查询群活码

请求URL:

GET/&route=plugin.group-code.api.group-code.search-list

参数:

参数名 是否必须 类型 说明
search[code_name] string 搜索文本

返回参数 data.shop_log说明:

参数名 是否必须 类型 说明
data.shop_log string 商城logo(群活码列表信息里member_id为0时显示,代替用户头像)

返回参数 data.list说明:群活码列表

参数名 是否必须 类型 说明
data.[0].id int 群活码id
data.[0].member_id int 群活码创建的用户id,0为后台创建
data.[0].code_name string 群活码名称
data.[0].log_total_count int 群活码扫码人数
data.[0].has_one_member array 群活码创建用户的信息,后台创建时此为null

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"shop_log": "images/1/2019/10/D4uZa999psputsapuDASza5WAWfs9p.jpg",
		"list": {
			"total": 7,
			"per_page": 10,
			"current_page": 1,
			"last_page": 1,
			"next_page_url": null,
			"prev_page_url": null,
			"from": 1,
			"to": 7,
			"data": [
				{
					"id": 13,
					"member_id": 0,
					"code_name": "我的群活码测试",
					"code_guide": "1332132132",
					"log_total_count": 0,
					"has_one_member": null
				},
				{
					"id": 12,
					"member_id": 0,
					"code_name": "我的群活码测试",
					"code_guide": "1332132132",
					"log_total_count": 1,
					"has_one_member": null
				},
				{
					"id": 6,
					"member_id": 164932,
					"code_name": "群活码测试",
					"code_guide": "快来扫码加群吧",
					"log_total_count": 2,
					"has_one_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李李李"
					}
				},
				{
					"id": 5,
					"member_id": 0,
					"code_name": "群活码测试",
					"code_guide": "快来扫码加群吧",
					"log_total_count": 0,
					"has_one_member": null
				},
				{
					"id": 4,
					"member_id": 0,
					"code_name": "群活码测试",
					"code_guide": "快来扫码加群吧",
					"log_total_count": 0,
					"has_one_member": null
				},
				{
					"id": 3,
					"member_id": 0,
					"code_name": "群活码测试",
					"code_guide": "快来扫码加群吧",
					"log_total_count": 0,
					"has_one_member": null
				},
				{
					"id": 1,
					"member_id": 164932,
					"code_name": "群活码测试",
					"code_guide": "快来扫码加群吧",
					"log_total_count": 1,
					"has_one_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李李李"
					}
				}
			]
		}
	}
}

错误时返回:

{
	"result": 0,
	"msg": "群活码未开启",
	"data": []
}
{
	"result": 0,
	"msg": "请填写搜索内容",
	"data": []
}

备注: