修复客服名

pull/30/head
陶士涵 4 years ago
parent 0549eb5369
commit c676514f8f

@ -214,7 +214,7 @@ func singleBroadcaster(){
conn := guest.conn
msg := TypeMessage{
Type: "kfChatMessage",
Type: "message",
Data: ClientMessage{
Name: clientMsg.Name,
Avator: clientMsg.Avator,
@ -233,7 +233,7 @@ func singleBroadcaster(){
continue
}
msg := TypeMessage{
Type: "chatMessage",
Type: "message",
Data: ClientMessage{
Avator: clientMsg.Avator,
Id: clientMsg.Id,

@ -232,7 +232,7 @@
// this.socket.send(JSON.stringify(mes));
//}
if (redata.type == "chatMessage") {
if (redata.type == "message") {
let msg = redata.data
let content = {}
content.avator = msg.avator;

@ -158,13 +158,13 @@
guest.to_id=msg.id;
this.chatTitle=msg.name+",正在与您沟通!"
}
if (redata.type == "kfChatMessage") {
if (redata.type == "message") {
let msg = redata.data
guest.to_id=msg.id;
let content = {}
content.avator = msg.avator;
content.name = msg.kf_name;
content.name = msg.name;
content.content = msg.content;
content.is_kefu = false;
content.time = msg.time;

Loading…
Cancel
Save