From 60aa921b3fb12165cdbe773ee2609c04851ea7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Tue, 31 Oct 2023 11:35:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B3=A8=E5=86=8C=E6=97=B6=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/api/join.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/api/join.go b/client/api/join.go index 7612e6b..c1e8b85 100644 --- a/client/api/join.go +++ b/client/api/join.go @@ -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 }