ai-css/tmpl/chat.go
2026-02-12 08:50:11 +00:00

23 lines
368 B
Go
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package tmpl
import (
"github.com/gin-gonic/gin"
"net/http"
)
// 咨询界面
func PageChat(c *gin.Context) {
kefuId := c.Query("kefu_id")
refer := c.Query("refer")
if refer == "" {
refer = c.Request.Referer()
}
if refer == "" {
refer = "Direct Link"
}
c.HTML(http.StatusOK, "chat_page.html", gin.H{
"KEFU_ID": kefuId,
"Refer": refer,
})
}