fix 部分表情无法显示

This commit is contained in:
xaoyaoo committed 2024-06-22 19:40:55 +08:00
1 parent 8843c044ad
commit ec0d4ec24e
2 files changed
+40 -33

No files matched your search

+4
View File
@@ -395,8 +395,12 @@ class ParsingMSG(DatabaseBase):
elif type_id == (47, 0): # 动画表情
content_tmp = xml2dict(StrContent)
cdnurl = content_tmp.get("emoji", {}).get("cdnurl", "")
if not cdnurl:
DictExtra = self.get_BytesExtra(BytesExtra)
cdnurl = match_BytesExtra(DictExtra)
if cdnurl:
content = {"src": cdnurl, "msg": "表情"}
elif type_id == (48, 0): # 地图信息
content_tmp = xml2dict(StrContent)
location = content_tmp.get("location", {})