@ -156,7 +156,7 @@ func SendMessageV2(c *gin.Context) {
kefus, ok := ws.KefuList[kefuInfo.Name]
if !ok || len(kefus) == 0 {
log.Println("客服不在线,发送邮件通知")
go SendNoticeEmail(vistorInfo.Name, content)
go SendNoticeEmail(content+vistorInfo.Name, content)
}
models.CreateMessage(kefuInfo.Name, vistorInfo.VisitorId, content, cType)
var msg TypeMessage
@ -26,6 +26,7 @@
GOFLY_KEFU_ID: "kefu2",
GOFLY_BTN_TEXT: "{{.OnlineChat}}",
GOFLY_LANG:"{{.Lang}}",
GOFLY_EXTRA:'{"refer":"'+document.referrer+'"}',
})
</script>
<!--//对接客服代码-->
@ -386,6 +386,9 @@ var app=new Vue({
if(r.extra!=""){
var extra=JSON.parse(b64ToUtf8(r.extra));
for(var key in extra){
if(extra[key]==""){
extra[key]="无";
var temp={key:key,val:extra[key]}
_this.visitorExtra.push(temp);