瀏覽代碼

自动升级优化

zou.yingbin 4 年之前
父節點
當前提交
18fba4b084
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      controllers/other/logfilelist.go

+ 2 - 0
controllers/other/logfilelist.go

@@ -30,6 +30,8 @@ func LogList(c *gin.Context) {
 
 	const templateText = `
 <h1>go查询服务信息</h1>
+<a href="{{.host}}/debug/update" title="点击后从自动构建服务拉取版本升级并重启GO服务, 请谨慎点击" target="_blank">点击升级到最新版本</a>
+<p>===========================</p>
 version : {{.version}}<br>
 git hash: {{.githash}}<br>
 oracle : {{.db}} <br>