From 4d0b67269715e17f17efb27af50d723995f41a75 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 9 Apr 2023 01:16:53 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E4=BF=AE=E6=94=B9=E6=A0=87=E9=A2=98?= =?utf8?q?=E5=88=B7=E6=96=B0=E5=BD=95=E5=88=B6=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 5 ++++- Reply/Reply.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Reply/F.go b/Reply/F.go index d066ffb..3b05b7f 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -359,9 +359,12 @@ func StreamOStop(roomid int) { } // 实例切断 -func StreamOCut(roomid int) { +func StreamOCut(roomid int, title ...string) { if v, ok := streamO.Load(roomid); ok { if v.(*M4SStream).Status.Islive() { + if len(title) != 0 { + v.(*M4SStream).common.Title = title[0] + } v.(*M4SStream).msg.PushLock_tag(`cut`, v.(*M4SStream)) flog.L(`I: `, `已切片 `+strconv.Itoa(roomid)) } diff --git a/Reply/Reply.go b/Reply/Reply.go index fe013ed..61c7111 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -503,7 +503,7 @@ func (replyF) room_change(s string) { var sh = []interface{}{"房间改变"} if c.C.Title != title.(string) { - StreamOCut(c.C.Roomid) + StreamOCut(c.C.Roomid, title.(string)) } if title != nil { -- 2.39.2