From 8b2a28b7206bd80c61641c819214a72c84c72e0b Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 11 Oct 2020 21:45:20 +0800 Subject: [PATCH] =?utf8?q?=E6=9C=AA=E6=8C=87=E5=AE=9A=E6=B8=85=E6=99=B0?= =?utf8?q?=E5=BA=A6=E4=B8=8D=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- F/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/F/api.go b/F/api.go index 80ac91a..c9aabab 100644 --- a/F/api.go +++ b/F/api.go @@ -134,7 +134,7 @@ func (i *api) Get_live(qn ...string) (o *api) { qn = []string{} } - if len(qn) == 0 || qn[0] == "0" {//html获取 + if len(qn) == 0 || qn[0] == "0" || qn[0] == "" {//html获取 r := p.Get(p.Rval{ Url:"https://live.bilibili.com/" + strconv.Itoa(o.Roomid), Cookie:Cookie, @@ -213,7 +213,7 @@ func (i *api) Get_live(qn ...string) (o *api) { cu_qn = strconv.Itoa(int(i.(float64))) } - if len(qn) != 0 && qn[0] != "0" { + if len(qn) != 0 && qn[0] != "0" && qn[0] != "" { if _,ok := c.Default_qn[qn[0]];!ok{ apilog.W("清晰度未找到", qn[0], ",使用默认") return -- 2.39.2