From 359e46ae0c3c7af6b5ad118951c66531bd61ef82 Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 16 Apr 2024 20:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=BC=80=E6=94=BE=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=A8=A1=E5=9E=8B=E7=9A=84UID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blivedm/models/open_live.py | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/blivedm/models/open_live.py b/blivedm/models/open_live.py index 7954989..09bd248 100644 --- a/blivedm/models/open_live.py +++ b/blivedm/models/open_live.py @@ -23,10 +23,8 @@ class DanmakuMessage: uname: str = '' """用户昵称""" - uid: int = 0 - """用户UID(即将废弃)""" open_id: str = '' - """用户唯一标识(2024-03-11后上线)""" + """用户唯一标识""" uface: str = '' """用户头像""" timestamp: int = 0 @@ -54,7 +52,6 @@ class DanmakuMessage: def from_command(cls, data: dict): return cls( uname=data['uname'], - uid=data['uid'], open_id=data['open_id'], uface=data['uface'], timestamp=data['timestamp'], @@ -79,7 +76,7 @@ class AnchorInfo: uid: int = 0 """收礼主播uid""" open_id: str = '' - """收礼主播唯一标识(2024-03-11后上线)""" + """收礼主播唯一标识""" uname: str = '' """收礼主播昵称""" uface: str = '' @@ -128,10 +125,8 @@ class GiftMessage: room_id: int = 0 """房间号""" - uid: int = 0 - """送礼用户UID(即将废弃)""" open_id: str = '' - """用户唯一标识(2024-03-11后上线)""" + """用户唯一标识""" uname: str = '' """送礼用户昵称""" uface: str = '' @@ -177,7 +172,6 @@ class GiftMessage: return cls( room_id=data['room_id'], - uid=data['uid'], open_id=data['open_id'], uname=data['uname'], uface=data['uface'], @@ -205,10 +199,8 @@ class UserInfo: 用户信息 """ - uid: int = 0 - """用户UID(即将废弃)""" open_id: str = '' - """用户唯一标识(2024-03-11后上线)""" + """用户唯一标识""" uname: str = '' """用户昵称""" uface: str = '' @@ -217,7 +209,6 @@ class UserInfo: @classmethod def from_dict(cls, data: dict): return cls( - uid=data['uid'], open_id=data['open_id'], uname=data['uname'], uface=data['uface'], @@ -278,10 +269,8 @@ class SuperChatMessage: room_id: int = 0 """直播间id""" - uid: int = 0 - """用户UID(即将废弃)""" open_id: str = '' - """用户唯一标识(2024-03-11后上线)""" + """用户唯一标识""" uname: str = '' """购买的用户昵称""" uface: str = '' @@ -313,7 +302,6 @@ class SuperChatMessage: def from_command(cls, data: dict): return cls( room_id=data['room_id'], - uid=data['uid'], open_id=data['open_id'], uname=data['uname'], uface=data['uface'], @@ -363,10 +351,8 @@ class LikeMessage: uname: str = '' """用户昵称""" - uid: int = 0 - """用户UID(即将废弃)""" open_id: str = '' - """用户唯一标识(2024-03-11后上线)""" + """用户唯一标识""" uface: str = '' """用户头像""" timestamp: int = 0 @@ -391,7 +377,6 @@ class LikeMessage: def from_command(cls, data: dict): return cls( uname=data['uname'], - uid=data['uid'], open_id=data['open_id'], uface=data['uface'], timestamp=data['timestamp'],