改善代码兼容性

This commit is contained in:
2019-04-07 16:01:27 +08:00
committed by JerryYan
parent 00190468a8
commit 5fa4ee929e
8 changed files with 56 additions and 39 deletions

22
api.py
View File

@ -12,21 +12,21 @@ import time
s = requests.Session()
DEBUG: bool = False
DEBUG = False
class XiGuaLiveApi:
isLive: bool = False
isValidRoom: bool = False
isLive = False
isValidRoom = False
_rawRoomInfo = {}
name: str = ""
roomID: int = 0
roomTitle: str = ""
roomLiver: User = None
roomPopularity: int = 0
_cursor:str = "0"
_updRoomCount:int = 0
lottery:Lottery = None
name = ""
roomID = 0
roomTitle = ""
roomLiver = None
roomPopularity = 0
_cursor = "0"
_updRoomCount = 0
lottery = None
def __init__(self, name: str = "永恒de草薙"):
self.name = name