Commit 85b834ea by agan

添加cid45

parent adab2692
Showing with 15 additions and 1 deletions
...@@ -301,7 +301,7 @@ webAppComm.prototype.goOthers = function (jumptype, url, isHide) { ...@@ -301,7 +301,7 @@ webAppComm.prototype.goOthers = function (jumptype, url, isHide) {
"reqCode": new Date().getTime(), "reqCode": new Date().getTime(),
"data": { "data": {
"msg": arr[jumptype], "msg": arr[jumptype],
"jumptype": jumptype, //16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 "jumptype": jumptype, //16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 // 43: 跳转新人主播引导
"url": url, //41 42时传入礼物id。 "url": url, //41 42时传入礼物id。
"hideTitle": isHide // 1隐藏头部,0 不隐藏, 默认为0 "hideTitle": isHide // 1隐藏头部,0 不隐藏, 默认为0
} }
...@@ -618,6 +618,20 @@ webAppComm.prototype.vertify = function (type, callBackName) { ...@@ -618,6 +618,20 @@ webAppComm.prototype.vertify = function (type, callBackName) {
webAppCollaboration(obj2); webAppCollaboration(obj2);
} }
//45: 与客户端同步H5客服聊天消息
webAppComm.prototype.syncChatHis = function (type, content, timeStr) {
let obj = {
"cid": 45, //客服聊天用,与客户端同步本地发送信息
"data": {
"type": type, //1文字 2图片
"content": content,
"time": timeStr //发送聊天时间戳
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//接收客戶端的消息 //接收客戶端的消息
webAppComm.prototype.reMsgFromApp = function (callback) { webAppComm.prototype.reMsgFromApp = function (callback) {
callback && callback(); callback && callback();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment