回复信息问题

pull/23/head
630892807@qq.com 3 years ago
parent 4c08c54eaa
commit 6851d1d817

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

@ -20,10 +20,10 @@
<!--对接客服代码,安装完成后更改成自己的域名或IP下面js文件路径以及GOFLY_URL都要改--> <!--对接客服代码,安装完成后更改成自己的域名或IP下面js文件路径以及GOFLY_URL都要改-->
<script src="https://gofly.sopans.com/static/js/gofly-front.js?v=1"></script> <script src="/static/js/gofly-front.js?v=1"></script>
<script> <script>
GOFLY.init({ GOFLY.init({
GOFLY_URL:"https://gofly.sopans.com", GOFLY_URL:"",
GOFLY_KEFU_ID: "kefu2", GOFLY_KEFU_ID: "kefu2",
GOFLY_BTN_TEXT: "{{.OnlineChat}}", GOFLY_BTN_TEXT: "{{.OnlineChat}}",
GOFLY_LANG:"{{.Lang}}", GOFLY_LANG:"{{.Lang}}",

Loading…
Cancel
Save