请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/CustomerRadar/saveSet

请求类型

POST

参数:

参数名 是否必须 类型 说明
form[is_open] int 是否开启,0否1是
form[agent_id] string agentID
form[agent_secret] string agentSecret
form[is_notice] int 是否企业人员访问通知,0否1是
form[exclude_member][0][uid] int 会员uid
form[exclude_member][0][nickname] string 会员昵称
form[push_range][0][type] string staff表示员工,department表示部门
form[push_range][0][id] int 员工或部门id
form[push_range][0][name] string 员工或部门名称

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"id": 1,
		"uniacid": 1,
		"business_id": 1,
		"is_open": 1,
		"agent_id": "safsdfsff",
		"agent_secret": "vdlkkla",
		"is_notice": 1,
		"exclude_member": [
			{
				"uid": 164959,
				"nickname": "",
				"avatar": "/static/images/photo-mr.jpg",
				"avatar_image": "http://localhost-yunshop.cn/static/images/photo-mr.jpg",
				"username": ""
			},
			{
				"uid": 164960,
				"nickname": "13422650566",
				"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
				"avatar_image": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
				"username": "13422650566"
			}
		],
		"push_range": [
			{
				"id": 10,
				"name": "肖培灿",
				"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
				"type": "staff",
				"userid": null,
				"avatar_mediaid": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0"
			},
			{
				"id": 13,
				"name": "许家健233",
				"avatar": "",
				"type": "staff",
				"userid": null,
				"avatar_mediaid": ""
			},
			{
				"id": 1,
				"name": "芸信",
				"type": "department"
			}
		],
		"created_at": "1646968903",
		"updated_at": "1646969837",
		"deleted_at": 0
	}
}