From 02a181b4a0739f3123980163522abe8e6600e06d Mon Sep 17 00:00:00 2001 From: qydysky Date: Tue, 2 Jan 2024 01:34:52 +0800 Subject: [PATCH] Improve --- CV/Var.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CV/Var.go b/CV/Var.go index b782dcf..a2d95c1 100644 --- a/CV/Var.go +++ b/CV/Var.go @@ -203,7 +203,7 @@ func (t *Common) ValidLive() *LiveQn { func (t *Common) Init() *Common { t.PID = os.Getpid() - t.Version = version + t.Version = strings.TrimSpace(version) t.StartT = time.Now() t.AllStreamType = map[string]StreamType{ @@ -391,7 +391,7 @@ func (t *Common) Init() *Common { reqState := t.ReqPool.State() ResStruct{0, "ok", map[string]any{ - "version": strings.TrimSpace(t.Version), + "version": t.Version, "startTime": t.StartT.Format(time.DateTime), "currentTime": time.Now().Format(time.DateTime), "state": map[string]any{ -- 2.39.2