From 84b03264f13bdfaacc1b45c1a90dd709c4b42826 Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Thu, 23 Mar 2023 21:17:58 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E5=BC=B9=E5=B9=95=E6=9C=8D=E5=8A=A1?= =?utf8?q?=E5=99=A8=E7=AB=AF=E5=8F=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- F/api.go | 3 ++- bili_danmu.go | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/F/api.go b/F/api.go index fc38896..fbc1507 100644 --- a/F/api.go +++ b/F/api.go @@ -780,8 +780,9 @@ func (c *GetFunc) getDanmuInfo() (missKey []string) { for _, v := range j.Data.HostList { if v.WssPort != 443 { tmp = append(tmp, "wss://"+v.Host+":"+strconv.Itoa(v.WssPort)+"/sub") + } else { + tmp = append(tmp, "wss://"+v.Host+"/sub") } - tmp = append(tmp, "wss://"+v.Host+"/sub") } c.WSURL = tmp } diff --git a/bili_danmu.go b/bili_danmu.go index 207bd1d..dd9f10d 100644 --- a/bili_danmu.go +++ b/bili_danmu.go @@ -330,8 +330,6 @@ func Start() { case <-flash_room_chan: ws_c.Close() danmulog.L(`I: `, "停止,等待服务器断开连接") - //刷新LIVE_BUVID - F.Get(&c.C).Get(`LIVE_BUVID`) //刷新WSURL F.Get(&c.C).Get(`WSURL`) i = 0 -- 2.39.2