简要描述:
- 聊天记录
请求URL:
POST/customerapi/index/getChatLog
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
uid | 是 | string | 会员ID |
page | 是 | string | 页码 |
t | 是 | string | time |
tk | 是 | string | token |
seller | 是 | string | 商户标识 |
kefu_code | 否 | string | 客服标识 |
返回示例:
正确时返回:
{
"code": 0,
"data": [
{
"log_id": 79,
"from_id": "520",
"from_name": "abc",
"from_avatar": "http://shop306542.ni.com/upload/80/avator/15692229699977.jpg",
"to_id": "KF_5d5e040182c93",
"to_name": "客服小妹",
"seller_code": "5d3e520401f40",
"content": "123",
"create_time": "2019-09-24 14:39:30",
"read_status": 1,
"type": "mine"
},
{
"log_id": 83,
"from_id": "KF_5d5e040182c93",
"from_name": "客服小妹",
"from_avatar": "http://whisperxx.com/static/common/images/kefu.png",
"to_id": "520",
"to_name": "abc",
"seller_code": "5d3e520401f40",
"content": "2",
"create_time": "2019-09-24 15:29:52",
"read_status": 0,
"type": "user"
}
],
"msg": 1,
"total": 9
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
log_id | int | 日志ID |
from_id | int | 发送者ID |
from_name | int | 发送者名称 |
from_avatar | int | 发送者头像 |
to_id | int | 接受者ID |
to_name | int | 接受者名称 |
seller_code | int | 商户标识 |
content | int | 发送的内容 |
create_time | string | 记录时间 |
read_status | string | 阅读状态 0 未读 1 已读 |
type | string | 哪方发送,user:会员,mine:客服 |
msg | int | 当前页码 |
total | int | 总页码数 |