Skip to content

Commit

Permalink
fix: 注册时可能失败
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Oct 31, 2023
1 parent b1d957a commit 60aa921
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions client/api/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ import (
)

func Join() error {
token := args.VersionNumber
for _, value := range args.Metadata {
token += ";" + value
token := []string{
args.VersionNumber,
args.Metadata["Name"],
args.Metadata["Owner"],
args.Metadata["Region"],
args.Metadata["ISP"],
args.Metadata["Banner"],
}

body, err := httpPost("/api/join", token)
body, err := httpPost("/api/join", strings.Join(token, ";"))
if err != nil {
return err
}
Expand Down

0 comments on commit 60aa921

Please sign in to comment.