晓信开放文档

晓风
2025-12-06 / 0 评论 / 40 阅读 / 正在检测是否收录...

自定义游客显示ID接口
https://xiaoxin.ljwx.site/we-chat/api/apiSys/updateVisitorWebInfo
POST
请求header
TOKEN:用户令牌
请求参数示例1,显示效果:亿乐用户ID:473
{"webUrl":"https://www.baidu.com","webType":"yile","id":473,"account":"18365564785","qq":"35684795","username":"","webName":"亿乐"}

请求参数示例2,显示效果:中汇物联卡号18365564785
{"webUrl":"https://www.baidu.com","id": 1,"account": "18365564785","username": "晓风","showName": "卡号","showKey": "account","webName": "中汇物联"}

用户令牌怎么取得?
在本地内存中有:localStorage.getItem("token_晓信密钥")
晓信密钥是什么?
这个就是
miu5jwi1.png

聊天外链可选参数
示例:
https://static.ljwx.site/xiaoxin/?xiaoxin_key=xxxxx&hiddenClosebtn=true&hiddenBottomNav=false&fullMobileScreen=true&hiddenMobileheader=false&hiddenHomeTip=false&showGroupCount=true

全局JS可选参数
示例

                <script>
                var xiaoxin_key="xxxxx";
                var hiddenClosebtn=false;
                var hiddenBottomNav=false;
                var fullMobileScreen=true;
                var hiddenMobileheader=false;
                var hiddenHomeTip=false;
                var showGroupCount=true
                (function() {
                var hm = document.createElement("script");
                hm.src = "https://static.ljwx.site/xiaoxin/index_1.js";
                var s = document.getElementsByTagName("script")[0]; 
                s.parentNode.insertBefore(hm, s);
                })();
                </script>

参数含义解析
xiaoxin_key是密钥,必填
hiddenClosebtn是否隐藏关闭按钮,true或false
hiddenBottomNav是否隐藏移动端底部导航,true或false
fullMobileScreen移动端是否全屏显示,true或false
hiddenMobileheader是否隐藏移动端顶部header,true或false
hiddenHomeTip是否隐藏移动端聊天对象到底部的提示,true或false
showGroupCount是否显示群聊人数,true或false

3

评论 (0)

取消