|
|
|
@ -207,12 +207,12 @@ func SendMessageV2(c *gin.Context) {
|
|
|
|
|
ws.OneKefuMessage(kefuInfo.Name, str)
|
|
|
|
|
go ws.SendServerJiang(vistorInfo.Name+"说", content, c.Request.Host)
|
|
|
|
|
go SendAppGetuiPush(kefuInfo.Name, vistorInfo.Name, content)
|
|
|
|
|
go ws.VisitorAutoReply(vistorInfo, kefuInfo, content)
|
|
|
|
|
kefus, ok := ws.KefuList[kefuInfo.Name]
|
|
|
|
|
if !ok || len(kefus) == 0 {
|
|
|
|
|
log.Println("客服不在线,发送邮件通知")
|
|
|
|
|
go SendNoticeEmail(content+"|"+vistorInfo.Name, content)
|
|
|
|
|
}
|
|
|
|
|
go ws.VisitorAutoReply(vistorInfo, kefuInfo, content)
|
|
|
|
|
c.JSON(200, gin.H{
|
|
|
|
|
"code": 200,
|
|
|
|
|
"msg": "ok",
|
|
|
|
|