简要描述:

  • 用户聊天首页数据

请求URL:

GET/plugin.yun-chat.frontend.h5.chat.index

参数:

参数名 是否必须 类型 说明
group_id int 客服组ID
employee_id int 客服ID

客服组ID和客服ID 至少传一个

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "成功",
  "data": {
    "employee_info": {
      "id": 2,
      "uniacid": 2,
      "crop_id": 1,
      "nickname": "",
      "avatar": ""
    },
    "member_info": {
      "uid": 1307,
      "avatar": "http://thirdwx.qlogo.cn/mmopen/Q3auHgzwzM4JZkUcGoy4Uw0DibkBG0iburJ7YRqvLfCImMYWyA1eH1k2TU076WptxzescBZC5Kdv83EpNjtSGbLQ/132",
      "nickname": "",
      "realname": "",
      "mobile": "",
      "createtime": 1585799746,
      "credit1": "0.00",
      "credit2": "0.00",
      "avatar_image": "https://thirdwx.qlogo.cn/mmopen/Q3auHgzwzM4JZkUcGoy4Uw0DibkBG0iburJ7YRqvLfCImMYWyA1eH1k2TU076WptxzescBZC5Kdv83EpNjtSGbLQ/132",
      "username": "韦平",
      "yz_member": {
        "member_id": 1307,
        "parent_id": 0,
        "is_agent": 1,
        "group_id": 0,
        "level_id": 0,
        "is_black": 0,
        "alipayname": "",
        "alipay": "",
        "content": "",
        "status": 2,
        "custom_value": "",
        "validity": 0,
        "member_form": null,
        "withdraw_mobile": "",
        "wechat": "",
        "group": null,
        "level": null,
        "agent": null
      },
      "has_one_fans": {
        "uid": 1307,
        "followed": 1,
        "unionid": ""
      }
    }
  }
}

错误时返回:


返回参数说明:

参数名 类型 说明
employee_info obj 客服信息
member_info obj 当前用户信息
queue_info obj 会话信息