简要描述:

  • 客服信息

请求URL:

POST/serviceapi/index/index

返回示例:

正确时返回:

{
    "code": 0,
    "data": {
        "port": 2020,
        "seller": "5d3e520401f40",
        "socket": "ws://127.0.0.1:8282/5d3e520401f40-1565079337-6819e9a4f11a1bec9a765cc371d92d20",
        "userName": "客服小明",
        "userCode": "5d43f393b484a",
        "userAvatar": "/static/common/images/kefu.png",
        "word": [],
        "system": {
            "sys_id": 20,
            "hello_word": "您好,客服为您服务",
            "seller_id": 39,
            "seller_code": "5d3e520401f40",
            "hello_status": 0,
            "relink_status": 1,
            "auto_link": 0,
            "auto_link_time": 30,
            "is_notice": 1,
            "notice_template_id": "12312"
        }
    },
    "msg": "获取成功"
}

返回参数说明:

参数名 类型 说明
seller string 商户标识
userName string 客服名称
userCode string 客服标识
userAvatar string 客服头像
seller_id int 所属商家ID
seller_code string 商户标识
hello_word string 欢迎语
hello_status int 是否启用欢迎语 0 不启用 1 启用
relink_status int 是否转接 0 不启用 1 启用
auto_link int 是否自动接待 0 否 1 是
auto_link_time int 自动接待间隔 单位s
is_notice int 是否启用会员通知 0 不启用 1 启用
notice_template_id string 公众号模版ID