简要描述:

  • 群活码列表

请求URL:

GET/&route=plugin.group-code.admin.group-code.get-group-code-list

参数:

参数名 是否必须 类型 说明
search[member_id] int 群活码创建者id,后台填0
search[member] string 创建会员昵称,姓名,手机
search[code_name] string 群活码名称
search[order_by] int 排序规则,0ID,1今日扫码,2累计扫码
search[is_statistic] int 是否统计,0是,1否
search[time][start] int 开始时间戳
search[time][end] int 结束时间戳

返回参数data.data说明:

参数名 是否必须 类型 说明
code_name string 群活码名称
auth_visit array 访问授权,0关闭,1开启
member_id int 创建者用户id,0为后台创建
status int 群活码状态,0关闭,1开启
recommend int 推荐,0关闭,1开启
cumulative int 累计扫码人数
cumulative_new int 累计新会员
log_today_count int 今日扫码人数
log_new_today_count int 今日新会员人数
code_total_count int 二维码总数
code_soon_expire_count int 二维码即将过期数量
code_expire_count int 二维码已过期总数
has_one_member.uid int 创建群活码用户id
has_one_member.nickname string 创建群活码用户昵称
has_one_member.avatar string 创建群活码用户头像

返回参数data.statistic说明:统计信息,当第一次进页面或者搜索选项为统计时有数据,否则为[]

参数名 是否必须 类型 说明
cumulative int 累计扫码人数
cumulative_new int 累计新会员
code_total int 活码总数

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"list": {
			"total": 4,
			"per_page": 12,
			"current_page": 1,
			"last_page": 1,
			"next_page_url": null,
			"prev_page_url": null,
			"from": 1,
			"to": 4,
			"data": [
				{
					"id": 4,
					"code_name": "123123121",
					"auth_visit": 0,
					"member_id": 164932,
					"status": 1,
					"recommend": 1,
					"created_at": "2020-07-31 14:23:57",
					"cumulative": "40",
					"cumulative_new": "60",
					"log_today_count": 0,
					"log_new_today_count": 0,
					"code_total_count": 2,
					"code_soon_expire_count": 0,
					"code_expire_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": 2,
					"code_name": "1231231212",
					"auth_visit": 0,
					"member_id": 0,
					"status": 0,
					"recommend": 0,
					"created_at": "2020-07-31 14:10:17",
					"cumulative": "0",
					"cumulative_new": "0",
					"log_today_count": 0,
					"log_new_today_count": 0,
					"code_total_count": 1,
					"code_soon_expire_count": 0,
					"code_expire_count": 1,
					"has_one_member": null
				},
				{
					"id": 3,
					"code_name": "123123121",
					"auth_visit": 0,
					"member_id": 164932,
					"status": 1,
					"recommend": 1,
					"created_at": "2020-07-31 14:23:14",
					"cumulative": "0",
					"cumulative_new": "0",
					"log_today_count": 0,
					"log_new_today_count": 0,
					"code_total_count": 2,
					"code_soon_expire_count": 0,
					"code_expire_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": 1,
					"code_name": "东方闪电官方2312",
					"auth_visit": 0,
					"member_id": 0,
					"status": 0,
					"recommend": 0,
					"created_at": "2020-07-30 16:54:05",
					"cumulative": "0",
					"cumulative_new": "0",
					"log_today_count": 0,
					"log_new_today_count": 0,
					"code_total_count": 1,
					"code_soon_expire_count": 0,
					"code_expire_count": 1,
					"has_one_member": null
				}
			]
		},
		"statistic": {
			"cumulative": "40",
			"cumulative_new": "60",
			"code_total": 4
		},
		"search": {
			"member_id": "",
			"member": "",
			"code_name": "",
			"order_by": "2",
			"is_statistic": "0",
			"time": {
				"start": "",
				"end": ""
			}
		}
	}
}

错误时返回:

备注: