From: qydysky Date: Mon, 1 Jan 2024 17:34:52 +0000 (+0800) Subject: Improve X-Git-Tag: v0.11.15~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=02a181b4a0739f3123980163522abe8e6600e06d;p=bili_danmu%2F.git Improve --- 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{