diff --git a/README.md b/README.md index 44be714..683ee8b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ecs -[![release](https://github.com/oneclickvirt/ecs/actions/workflows/main.yaml/badge.svg)](https://github.com/oneclickvirt/ecs/actions/workflows/main.yaml) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fecs&count_bg=%2357DEFF&title_bg=%23000000&icon=cliqz.svg&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) +[![release](https://github.com/oneclickvirt/ecs/actions/workflows/main.yaml/badge.svg)](https://github.com/oneclickvirt/ecs/actions/workflows/main.yaml) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fecs&count_bg=%2357DEFF&title_bg=%23000000&icon=cliqz.svg&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://www.spiritlhl.net/) 融合怪测评脚本 - GO重构版本 diff --git a/goecs.go b/goecs.go index 40268eb..6cdd9a5 100644 --- a/goecs.go +++ b/goecs.go @@ -22,6 +22,7 @@ import ( nt3model "github.com/oneclickvirt/nt3/model" "github.com/oneclickvirt/portchecker/email" speedtestmodel "github.com/oneclickvirt/speedtest/model" + "net/http" "os" "os/signal" "regexp" @@ -33,7 +34,7 @@ import ( ) var ( - ecsVersion = "v0.0.31" + ecsVersion = "v0.0.32" menuMode bool input, choice string showVersion bool @@ -105,6 +106,9 @@ func main() { nt3model.EnableLoger = true speedtestmodel.EnableLoger = true } + go func() { + http.Get("https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fecs&count_bg=%2357DEFF&title_bg=%23000000&icon=cliqz.svg&icon_color=%23E7E7E7&title=hits&edge_flat=false") + }() if menuMode { basicStatus, cpuTestStatus, memoryTestStatus, diskTestStatus = false, false, false, false commTestStatus, utTestStatus, securityTestStatus, emailTestStatus = false, false, false, false