From 5bfa5c5d3ce7d5bd77b1b4a3d969f4ce654d922a Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Tue, 22 Dec 2020 14:55:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E4=B8=AA=E9=BB=98=E8=AE=A4refer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmpl/chat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmpl/chat.go b/tmpl/chat.go index 13f843f..6985c72 100644 --- a/tmpl/chat.go +++ b/tmpl/chat.go @@ -15,6 +15,9 @@ func PageChat(c *gin.Context) { if refer == "" { refer = c.Request.Referer() } + if refer == "" { + refer = "直接访问" + } c.HTML(http.StatusOK, "chat_page.html", gin.H{ "KEFU_ID": kefuId, "SendBtn": language.Send,