简要描述:

  • 获取关键词回复详情--后台

请求URL:

GET/business/{公众号id}/plugin/YunChat/wordsReplyGetDetail

参数:

参数名 是否必须 类型 说明
id int ID

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "",
	"data": {
		"id": 1,
		"uniacid": 3,
		"crop_id": 1,
		"title": "规则",
		"reply_type": 0,
		"key_words": "你好,关键词1",
		"key_words_rule": "[{\"type\":2,\"word\":\"\你\好\"},{\"type\":1,\"word\":\"\关\键\词1\"}]",
		"reply_contents": "[\"#\会\员\昵\称#<img src=\\\"https:\\\/\\\/release.yunzmall.com\\\/attachment\\\/image\\\/64f528043abc4ba95ba59b1863de4d3d.png\\\" \\\/><link href=\\\"https:\\\/\\\/www.baidu.com\\\" weapp_id=\\\"\小\程\序\原\始ID\\\" weapp_url=\\\"\小\程\序\路\径\\\">\百\度<\\\/link>\",\"\添\加\回\复\内\容1\",\"\添\加\回\复\内\容2\"]",
		"created_at": "2021-08-10 13:34:43",
		"updated_at": "2021-08-10 13:37:37",
		"deleted_at": null,
		"rule_list": [{
			"id": 2,
			"type": 2,
			"word": "你好"
		}, {
			"id": 1,
			"type": 1,
			"word": "关键词1"
		}],
		"reply_content_list": ["#会员昵称#<img src=\"https:\/\/release.yunzmall.com\/attachment\/image\/64f528043abc4ba95ba59b1863de4d3d.png\" \/><link href=\"https:\/\/www.baidu.com\" weapp_id=\"小程序原始ID\" weapp_url=\"小程序路径\">百度<\/link>", "添加回复内容1", "添加回复内容2"]
	}
}

错误时返回:


返回参数说明:

参数名 类型 说明
id int ID
title string 规则名称
reply_type int 回复方式:0-随机一条,1-全部回复
rule_list array 关键词匹配列表
rule_list.id int 关键词id
rule_list.type int 匹配类型:1-半匹配,2-全匹配
rule_list.word string 匹配关键词
reply_content_list array 回复内容列表