Browse Source

调试功能

zou.yingbin 4 years ago
parent
commit
a2d1ed65b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/other/logfilelist.go

+ 2 - 2
controllers/other/logfilelist.go

@@ -44,7 +44,7 @@ git hash: {{.githash}}<br>
 oracle : {{.db}} <br>
 mysql  : {{.mysql}} <br>
 redis  : {{.redis}} <br>
-<h3>版本列表(最近10次构建)</h3>
+<h3>版本列表(最近5次构建)</h3>
 <font color="#DC143C">*** 点击版本,将升级到对应版本 ***</font>
 <br>
 {{.verlist}}
@@ -120,7 +120,7 @@ func GetVerlist(host string) string {
 			for i := range sName {
 				strVerList += fmt.Sprintf(`<a href="%v/debug/update?filename=%v" target="_blank">%v</a>`, host, sName[i], sName[i]) + "<br>"
 				// 取最近n条
-				if i > 10 {
+				if i > 5 {
 					break
 				}
 			}