From 3d303a6a19db2be3b7f63b43ae1a40c5a3e2f252 Mon Sep 17 00:00:00 2001 From: hliang <1820862012@qq.com> Date: Mon, 18 Nov 2024 04:07:27 +0800 Subject: [PATCH] update --- core/api.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/api.go b/core/api.go index 59dc105..9064426 100644 --- a/core/api.go +++ b/core/api.go @@ -261,7 +261,19 @@ func getList(c *gin.Context) { } func index(c *gin.Context) { - c.String(200, "你好,我是黑脸怪~") + //c.String(200, "你好,我是黑脸怪~") + htmlContent := ` + + + 欢迎使用JsRpc + + 你好,我是黑脸怪~ +

微信:hl98_cn

+ + + ` + // 返回 HTML 页面 + c.Data(200, "text/html; charset=utf-8", []byte(htmlContent)) } func tlsHandler(HttpsHost string) gin.HandlerFunc {