From 469fcceb4d9b07a44fb6f89e1da6698f81c1c36c Mon Sep 17 00:00:00 2001 From: shaoyongjun Date: Mon, 7 Oct 2024 23:15:58 +0800 Subject: [PATCH] to:sync --- static/{login.html => login.html.old} | 0 static/login_shuidi.html | 21 +- static/mylomen.html | 299 ++++++++++++++++++++++++++ static/static_router.go | 6 +- 4 files changed, 320 insertions(+), 6 deletions(-) rename static/{login.html => login.html.old} (100%) create mode 100644 static/mylomen.html diff --git a/static/login.html b/static/login.html.old similarity index 100% rename from static/login.html rename to static/login.html.old diff --git a/static/login_shuidi.html b/static/login_shuidi.html index 284c3b7..2956855 100644 --- a/static/login_shuidi.html +++ b/static/login_shuidi.html @@ -44,9 +44,24 @@ + + \ No newline at end of file diff --git a/static/static_router.go b/static/static_router.go index dc3b4fa..5607a28 100644 --- a/static/static_router.go +++ b/static/static_router.go @@ -13,7 +13,7 @@ func Favicon(c echo.Context) error { func Login(c echo.Context) error { c.Response().Header().Set("Cache-Control", "max-age=3600") - return c.Blob(http.StatusOK, "text/html; charset=utf-8", pageMap["login_shuidi.html"]) + return c.Blob(http.StatusOK, "text/html; charset=utf-8", pageMap["mylomen.html"]) } func Chat(c echo.Context) error { @@ -46,11 +46,11 @@ func Chat3(c echo.Context) error { func InitStaticGroup(g *echo.Group) { - g.GET("login.html", func(c echo.Context) error { + g.GET("mylomen.html", func(c echo.Context) error { c.Response().Header().Set("Content-Type", "text/html; charset=utf-8") c.Response().Header().Set("Cache-Control", "max-age=3600") - return c.Blob(http.StatusOK, "text/html; charset=utf-8", pageMap["login_shuidi_v2.html"]) + return c.Blob(http.StatusOK, "text/html; charset=utf-8", pageMap["mylomen.html"]) }) g.GET("css/:name", func(c echo.Context) error {