Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnjk committed Aug 31, 2024
1 parent 7ee0765 commit 7d7d19e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func main() {
os.MkdirAll(".autoinst/cache", os.ModePerm)
}
//检测是否为simpfun
_, err := os.Stat("./.autoinst/simpfun")
if err == nil {
_, err := os.Stat("./.autoinst/simpfun")
if err == nil {
log.Printf("OK")
} else
port := os.Getenv("SERVER_PORT")
} else {
port := os.Getenv("SERVER_PORT")
if port == "" {
log.Fatal("6")
// 设置HTTP服务器
Expand Down Expand Up @@ -80,7 +80,6 @@ func main() {
log.Fatalf("强制关闭测试服务器: %v", err)
}
log.Println("测试服务器已关闭")
}

//开始安装
fmt.Printf("启动方式\n");
Expand Down

0 comments on commit 7d7d19e

Please sign in to comment.