简要描述:
- 会话列表--后台
请求URL:
GET/business/{公众号id}/plugin/YunChat/chatGetHistoryList
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 页码 |
employee_name | 否 | string | 客服昵称 |
user_name | 否 | string | 会员昵称/手机号/id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"current_page": 1,
"data": [{
"id": 32,
"uniacid": 3,
"uid": 6130,
"crop_id": 1,
"employee_id": 2,
"status": 0,
"user_complate": 0,
"employee_complate": 0,
"last_msg_time": 1626141579,
"created_at": "2021-07-13 09:16:31",
"updated_at": "2021-07-13 09:59:39",
"deleted_at": null,
"last_updated_at": 1629440640,
"member_avatar": "https:\/\/thirdwx.qlogo.cn\/mmopen\/xLh6SlHib8PgiaAod3zsQ4pZiaGPdBaIwQYicDTFQF0aCV63aHmibkvQpS7NvoI8IiaWEKbGdDR1zLQicqiaRoYd0KvaVqgWpMdfqKfb\/132",
"employee_avatar": "https:\/\/release.yunzmall.com\/attachment\/image\/9e2cc6be3ec47e9b823c510584f45278.png",
"has_one_employee": {
"id": 2,
"uid": 383,
"uniacid": 3,
"nickname": "zxc",
"avatar": "https:\/\/release.yunzmall.com\/attachment\/image\/9e2cc6be3ec47e9b823c510584f45278.png"
},
"has_one_user": {
"uid": 6130,
"uniacid": 3,
"nickname": "L-S-Ting",
"avatar": "http:\/\/thirdwx.qlogo.cn\/mmopen\/xLh6SlHib8PgiaAod3zsQ4pZiaGPdBaIwQYicDTFQF0aCV63aHmibkvQpS7NvoI8IiaWEKbGdDR1zLQicqiaRoYd0KvaVqgWpMdfqKfb\/132",
"mobile": "13827653085",
"avatar_image": "https:\/\/thirdwx.qlogo.cn\/mmopen\/xLh6SlHib8PgiaAod3zsQ4pZiaGPdBaIwQYicDTFQF0aCV63aHmibkvQpS7NvoI8IiaWEKbGdDR1zLQicqiaRoYd0KvaVqgWpMdfqKfb\/132",
"username": "L-S-Ting"
}
}],
"first_page_url": "https:\/\/release.yunzmall.com\/web\/index.php?page=1",
"from": 1,
"last_page": 4,
"last_page_url": "https:\/\/release.yunzmall.com\/web\/index.php?page=4",
"next_page_url": "https:\/\/release.yunzmall.com\/web\/index.php?page=2",
"path": "https:\/\/release.yunzmall.com\/web\/index.php",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 40
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
id | int | 会话ID | |
has_one_user | obj | 会员信息 | |
has_one_employee | obj | 客服信息 | |
updated_at | string | 最近回话结束时间 |