简要描述:

  • 客服系统

请求URL:

POST/wapapi/goods/qlkefuInfo

参数:

参数名 是否必须 类型 说明
shop_id int 店铺ID(为空传0)
goods_id int 商品ID(为空传0)

返回示例:

正确时返回:

{
    "code": 1,
    "message": "获取成功",
    "data": {
		"kf_type" : 1   /*客服类型 0不显示 1客服系统接口 2微信客服接口*/
#        "is_qlkefu": 1,
#        "domain": "http://qlkefu.com/index/index/chatBoxJs/u/5c6cbcb7d55ca"
#        "domain2": "http://qlkefu.com/index/index/chat/u/5c6cbcb7d55ca"
    }
}

客服系统接入:

弹层接入
<script src="http://qlkefu.com/index/index/chatBoxJs/u/5c6cbcb7d55ca"></script>
<script>qlkefuChat.init({uid: xxx, uName: xxx, avatar: xxx,regTime: xxx, goods:{});</script>
固定连接接入 base64(xx):base64加密数据
http://qlkefu.com/index/index/chat/u/5c6cbcb7d55ca?uid=xx&uname=base64(xx)&avatar=base64(xx)&regtime=base64(xx)&goods_id=xx&goods_name=base64(xx)&price=base64(xx)&pic_cover=base64(xx)&kefucode=xx

参数说明:

参数名 类型 说明
is_whisper int 客服系统是否 1是 0否
uid int 用户ID
uName string 用户名
avatar string 用户头像
regTime string 会员注册时间,格式:2019-02-20 10:35:58
goods string 商品信息,格式:{goods_id:商品ID,goods_name:商品名称,price:商品价格,pic_cover:商品图片},没有商品时为{goods_id:0,goods_name:"",price:0,pic_cover:""}
kefucode string 连接指定客服,只用于固定连接为空不传