简要描述:

  • 编辑群活码页面

请求URL:

GET/&route=plugin.group-code.api.group-code.detail

参数:

参数名 是否必须 类型 说明
id int 群活码id

返回参数 data.data说明:

参数名 是否必须 类型 说明
id int 群活码id
member_id int 群活码创建用户id,0为后台创建
code_name string 群活码名称
code_guide string 群活码引导语
auth_visit string 访问授权
join_type string 进群方式,0默认进群,1标签进群
explain string 说明,0关闭,1开启
explain_content string 说明内容
customer_service string 客服二维码
customer_service_guide string 客服引导语
label_banner string 标签页banner
label_data array 标签
in_number int 默认参与人数
recommend int 推荐,0关闭,1开启
status int 状态,0关闭,1开启
has_many_code[0].id int 群二维码id
has_many_code[0].uniacid int 公众号id
has_many_code[0].group_id int 群活码id
has_many_code[0].label int 群二维码标签
has_many_code[0].code_url string 群二维码图片链接
has_many_code[0].expire int 群二维码过期时间
has_many_code[0].upper_limit int 群二维码扫码上限
has_many_code[0].status int 群二维码状态,0关闭,1开启
has_many_code[0].remark string 群二维码备注

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"data": {
			"id": 8,
			"uniacid": 1,
			"member_id": 164932,
			"code_name": "群活码测试",
			"code_guide": "快来扫码加群吧",
			"auth_visit": 0,
			"join_type": 0,
			"explain": 1,
			"explain_content": "34234234",
			"customer_service": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"customer_service_guide": "欢迎加客服微信",
			"label_banner": null,
			"label_data": false,
			"in_number": 0,
			"status": 1,
			"recommend": 1,
			"created_at": "2020-07-27 12:44:05",
			"updated_at": "2020-07-27 12:44:05",
			"deleted_at": null,
			"has_many_code": [
				{
					"id": 8,
					"uniacid": 1,
					"group_id": 8,
					"label": null,
					"code_url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"expire": 1596343445,
					"upper_limit": 200,
					"status": 1,
					"remark": null,
					"created_at": "2020-07-27 12:44:05",
					"updated_at": "2020-07-27 12:44:05"
				},
				{
					"id": 9,
					"uniacid": 1,
					"group_id": 8,
					"label": null,
					"code_url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"expire": 1596343445,
					"upper_limit": 200,
					"status": 1,
					"remark": null,
					"created_at": "2020-07-27 12:44:05",
					"updated_at": "2020-07-27 12:44:05"
				}
			]
		}
	}
}

错误时返回:

{
	"result": 0,
	"msg": "群活码未开启",
	"data": []
}

备注: