问题描述
类似于 环信客服扩展消息 (http://docs.easemob.com/doku.php?id=start:475mobilecs:30msgextension) 的东西?
解决方案
//发送消息 function sendMsg(){ var sendStr=$("#sendContent").val();// conn.sendTextMessage({// to : '123456',// type : 'chat',// msg :sendStr //文本消息// // }); /*if (!to) { return; }*/ var options = { to : chatRoomId, msg : sendStr, type : "groupchat", ext: { "weichat": { visitor:{ trueName:"李明", qq:"13512345678", companyName:"环信", userNickname:"小小小", description:"", email:"abc@123.com" } } } };