改善代码兼容性

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

View File

@ -3,12 +3,12 @@ from .User import User
class Gift:
ID:int = 0
count:int = 0
roomID:int = 0
giftList:dict = {}
amount:int = 0
user:User = None
ID = 0
count = 0
roomID = 0
giftList = {}
amount = 0
user = None
def __init__(self, json=None):
if json: