修复SuperChatMsg sender id与name互换的bug

This commit is contained in:
Cam 2022-06-19 13:15:34 +08:00
parent 6a188c3b53
commit 0c1f94b4a8
2 changed files with 3 additions and 3 deletions

View File

@ -184,8 +184,8 @@ class SuperChatMsg(BaseMsg):
@property
def sender(self):
return Sender(
id=dict_chain_get(self.body, "data.user_info.uname"),
name=dict_chain_get(self.body, "data.uid"),
id=dict_chain_get(self.body, "data.uid"),
name=dict_chain_get(self.body, "data.user_info.uname"),
medal_name=dict_chain_get(self.body, "data.medal_info.medal_name"),
medal_level=dict_chain_get(self.body, "data.medal_info.medal_level"),
)

View File

@ -5,7 +5,7 @@ with open("./README.md", "r") as f:
setuptools.setup(
name="blive",
version="0.0.6",
version="0.0.7",
author="cam",
author_email="yulinfeng000@gmail.com",
long_description=description,