소스 검색

修改乱码问题

zhouxnsz 9 달 전
부모
커밋
4a4e05e53e
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      controllers/other/logfilelist.go
  2. BIN
      services/tencent/templates/永坤黄金/网签合同(宇坤)(20250114).docx

+ 6 - 0
controllers/other/logfilelist.go

@@ -33,6 +33,11 @@ func LogList(c *gin.Context) {
 	}
 
 	const templateText = `
+<!DOCTYPE html>
+<head>
+    <meta charset="UTF-8">
+</head>
+<body>
 <h1>go查询服务信息</h1>
 <a href="{{.host}}/debug/update" title="点击后从自动构建服务拉取版本升级并重启GO服务, 请谨慎点击" target="_blank">点击升级到最新版本</a>
 <br><br>
@@ -53,6 +58,7 @@ redis  : {{.redis}} <br>
 <p>------------------------</p>
 {{.data}}
 <p>------------------------</p>
+</body>
 `
 	sFile := make([]string, 0)
 	path := config.SerCfg.LogCfg.LogPath

BIN
services/tencent/templates/永坤黄金/网签合同(宇坤)(20250114).docx