]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
28
authorqydysky <qydysky@foxmail.com>
Sat, 3 Oct 2020 00:49:32 +0000 (08:49 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 3 Oct 2020 00:49:32 +0000 (08:49 +0800)
Reply/Reply.go
Reply/qt.go

index e6bc9731f5a1f473e57c70bcf05c80f9e8f822ef..ff952e5c701dc77eef5c451b66d5e3bf47fad128 100644 (file)
@@ -554,7 +554,7 @@ func Itos(i []interface{}) string {
                case float64: r+= strconv.Itoa(int(v.(float64)))
                default:fmt.Println("unkonw type", v)
                }
-               i += " "
+               r += " "
        }
        return r
 }
\ No newline at end of file
index 636ba8f1cb59179a0fb391344b03851d995f83f8..d79213c72849ebc0fcb7982a5c705459d6c861c5 100644 (file)
@@ -2,6 +2,7 @@ package reply
 
 import (
        "os"
+       "strconv"
 
        c "github.com/qydysky/bili_danmu/CV"
        "github.com/therecipe/qt/core"
@@ -65,7 +66,7 @@ func Qtdanmu() {
                QtDanmuChan = make(chan string, 10)
                QtOn = true
                // var list []string
-               t.TextCursor().InsertText("房间:", strconv.Itoa(c.Roomid))
+               t.TextCursor().InsertText("房间:" + strconv.Itoa(c.Roomid))
                for QtOn {
                        select{
                        case i :=<-QtDanmuChan: