From c4e2d8ee14fe7c7dad490f66b7cd18db20235179 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 31 Dec 2019 17:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api.py b/api.py index fcb6076..69c1376 100644 --- a/api.py +++ b/api.py @@ -34,11 +34,6 @@ COMMON_HEADERS = { class XiGuaLiveApi: - lottery: Lottery or None - isValidRoom: bool - isLive: bool - roomLiver: User or None - roomID: int def __init__(self, name=None): """ @@ -185,6 +180,7 @@ class XiGuaLiveApi: Check name matched :return: bool: 是否匹配 """ + return True if self.name is None or self.roomLiver is None: return False return self.name == self.roomLiver.__str__() or self.roomLiver.__str__() in self.name or self.name in self.roomLiver.__str__()