简要描述:

  • 编辑群活码

请求URL:

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

参数:

参数名 是否必须 类型 说明
id 是 int 群活码id
code_name 是 string 群活码名称(20字)
code_guide 是 string 群活码引导语(20字)
recommend 否 int (有推荐权限的时候开启选择)推荐,0关闭,1开启
explain 是 int 说明,0关闭,1开启
explain_content 否 string 说明内容,说明开启时必填
customer_service 是 string 客服二维码
customer_service_guide 是 string 客服引导语
code_data[0][id] 否 string 群二维码id,不是新加的二维码就需要传
code_data[0][code_url] 是 string 群二维码url
code_data[0][upper_limit] 是 int 扫码上限人数
code_data[1][code_url] 是 string 群二维码url
code_data[1][upper_limit] 是 int 扫码上限人数
code_data[..n][code_url] 是 string 群二维码url
code_data[..n][upper_limit] 是 int 扫码上限人数

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "保存成功",
	"data": []
}

错误时返回:

{
	"result": 0,
	"msg": "群活码未开启",
	"data": []
}
{
	"result": 0,
	"msg": "您还没有权限创建群活码",
	"data": []
}

备注: