Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jul 26, 2024
1 parent 7e90f08 commit d8940ce
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions configure/getFopsServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ func GetFopsServer() string {
return fopsServer
}

fopsServer = strings.ToLower(GetString("Fops.Server"))
if !strings.HasPrefix(fopsServer, "http") {
panic("[farseer.yaml]Fops.Server配置不正确,示例:https://fops.fsgit.com")
}
if !strings.HasSuffix(fopsServer, "/") {
fopsServer += "/"
if fopsServer = strings.ToLower(GetString("Fops.Server")); fopsServer != "" {
if !strings.HasPrefix(fopsServer, "http") {
panic("[farseer.yaml]Fops.Server配置不正确,示例:https://fops.fsgit.com")
}
if !strings.HasSuffix(fopsServer, "/") {
fopsServer += "/"
}
}
return fopsServer
}

0 comments on commit d8940ce

Please sign in to comment.