feat:添加群印象

This commit is contained in:
SengokuCola
2025-08-11 19:53:33 +08:00
parent eeab546848
commit b738b6ba63
7 changed files with 778 additions and 15 deletions

View File

@@ -492,7 +492,8 @@ class PersonInfoManager:
if field_name in JSON_SERIALIZED_FIELDS and default_value_for_field is None:
default_value_for_field = []
if record := PersonInfo.get_or_none(PersonInfo.person_id == person_id):
record = PersonInfo.get_or_none(PersonInfo.person_id == person_id)
if record:
val = getattr(record, field_name, None)
if field_name in JSON_SERIALIZED_FIELDS:
if isinstance(val, str):