修复发信息问题

pull/23/head
taoshihan1991 4 years ago
parent a674bc1ba5
commit 6636d9be80

@ -191,21 +191,21 @@ func SendMessageV2(c *gin.Context) {
// }) // })
// return // return
//} //}
//msg = TypeMessage{ msg := TypeMessage{
// Type: "message", Type: "message",
// Data: ws.ClientMessage{ Data: ws.ClientMessage{
// Avator: vistorInfo.Avator, Avator: vistorInfo.Avator,
// Id: vistorInfo.VisitorId, Id: vistorInfo.VisitorId,
// Name: vistorInfo.Name, Name: vistorInfo.Name,
// ToId: kefuInfo.Name, ToId: kefuInfo.Name,
// Content: content, Content: content,
// Time: time.Now().Format("2006-01-02 15:04:05"), Time: time.Now().Format("2006-01-02 15:04:05"),
// IsKefu: "no", IsKefu: "no",
// }, },
//} }
//str, _ := json.Marshal(msg) str, _ := json.Marshal(msg)
//ws.OneKefuMessage(kefuInfo.Name, str) ws.OneKefuMessage(kefuInfo.Name, str)
ws.KefuMessage(vistorInfo.VisitorId, content, kefuInfo) //ws.KefuMessage(vistorInfo.VisitorId, content, kefuInfo)
go ws.SendServerJiang(vistorInfo.Name+"说", content, c.Request.Host) go ws.SendServerJiang(vistorInfo.Name+"说", content, c.Request.Host)
go SendAppGetuiPush(kefuInfo.Name, vistorInfo.Name, content) go SendAppGetuiPush(kefuInfo.Name, vistorInfo.Name, content)
kefus, ok := ws.KefuList[kefuInfo.Name] kefus, ok := ws.KefuList[kefuInfo.Name]

Loading…
Cancel
Save