简要描述:

  • 扫码显示/群活码信息

请求URL:

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

参数:

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

返回参数 data.data.data说明:

参数名 是否必须 类型 说明
id int 群活码id
uniacid int 公众号id
member_id int 群活码创建用户id,0为后台创建
code_name string 群活码名称
code_guide string 群活码引导语
auth_visit string 访问授权,0关闭,1开启
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开启

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"data": {
			"id": 1,
			"uniacid": 1,
			"member_id": 0,
			"code_name": "群活码测试",
			"code_guide": "快来扫码加群吧",
			"auth_visit": 0,
			"join_type": 1,
			"explain": 1,
			"explain_content": "123123",
			"customer_service": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"customer_service_guide": "欢迎加客服微信",
			"label_banner": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"label_data": [
				"标签1",
				"标签2",
				"标签3"
			],
			"in_number": 15,
			"status": 1,
			"recommend": 1,
			"created_at": "2020-07-27 09:00:04",
			"updated_at": "2020-07-27 09:13:32",
			"deleted_at": null
		}
	}
}
{
	"result": 1,
	"msg": "ok",
	"data": {
		"data": null
	}
}

错误时返回:

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

备注:

当data.data为null时,说明该群活码是默认进群方式的,此时应带上群活码id跳转到二维码显示页面