🚧 update cqhttp event parse

This commit is contained in:
yanyongyu
2020-12-10 00:39:43 +08:00
parent 783efeaf0e
commit a57cd396fa
2 changed files with 9 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class Bot(BaseBot):
detail_type = f".{detail_type}" if detail_type else ""
sub_type = message.get("sub_type")
sub_type = f".{sub_type}" if sub_type else ""
models = get_event_model(f".{post_type}{detail_type}{sub_type}")
models = get_event_model(post_type + detail_type + sub_type)
for model in models:
try:
event = model.parse_obj(message)