]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Improve
authorqydysky <qydysky@foxmail.com>
Mon, 1 Jan 2024 17:34:52 +0000 (01:34 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 1 Jan 2024 17:34:52 +0000 (01:34 +0800)
CV/Var.go

index b782dcf667af6c3155eaf573dde54effeab06bca..a2d95c1f16d7a70b09937f8c7ad344032e1c2994 100644 (file)
--- 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{