简要描述:

  • SOP任务-推送详情

请求域名:

  • http://xx.com

请求URL:

plugin.sop-task.frontend.controller.task.task.getTask

请求类型

POST

参数:

参数名 是否必须 类型 说明
task_type int 1、2、3代表推送目标为客户,4代表群聊,不传默认为1
external_userid string 推送目标为客户时传入,客户在企业微信的标识
chat_id string 推送目标为群聊时传入,群聊在企业微信的标识

返回示例:

正确时返回:


错误时返回:


返回参数说明:

参数名 类型 说明
date string 管理员提示时间
task_count int 当前客户任务数量
current array 当前客户信息,传入task_type为1,2,3时返回
current[].id int 任务推送记录id
current[].task_name string 任务名称
current[].content_list array 任务内容,如下
othor array 其他客户信息,传入task_type为1,2,3时返回
othor[].name string 其他客户名称
othor[].avatar string 其他客户头像
othor[].userid string 其他客户userid
othor[].task_total int 待发送客户数量
group_chat_avatar string 群图标链接,传入task_type为4时返回
group_current array 当前客户信息,传入task_type为4时返回
group_current[].id int 任务推送记录id
group_current[].task_name string 任务名称
group_current[].content_list array 任务内容,如下
group_othor array 其他群聊信息,传入task_type为4时返回
group_othor[].group_name string 群聊名称
group_othor[].chat_id string 群聊在企业微信的标识
group_othor[].task_total int 待发送群聊数量

任务内容content_list

[
	{
		'type' : 'text'
		'news' : '文本消息'
	}
	{
		'type' : 'image'
		'link_img':'图片地址'
		"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
	}
	{
		'type' : 'link'
		'title' : '链接标题',
		'link' : '链接地址',
		'describe' : '链接描述',
		'link_img' : '链接封面'
	}
	{
		'type' : 'applet'
		'title' : '小程序标题',
		'appid' : '小程序appid',
		'page' : '小程序page路径',
		'link_img' : '小程序封面',
		"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
	}
	{
		'type' : 'video'
		'link_video' : '视频地址'
		"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
	}
	{
		'type' : 'file'
		'link_file' : '文件地址'
		"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
	}
]