20250918-新增主播库功能

This commit is contained in:
2025-09-18 21:31:56 +08:00
parent 11e72d0fae
commit b9ecce6eeb
4 changed files with 113 additions and 45 deletions

View File

@@ -443,7 +443,7 @@ def updateAnchorList():
updated = 0
for item in acList:
if isinstance(item, dict) and item.get("invitationType") == invitationType:
item["status"] = new_status
item["state"] = new_status
updated += 1
# 写回(保持原始结构)
@@ -512,7 +512,7 @@ def update_last_message():
updated_count = JsonUtils.update_json_items(
match={"sender": sender, "text": text}, # 匹配条件
patch={"status": 1}, # 修改内容
patch={"state": 1}, # 修改内容
filename="log/last_message.json", # 要修改的文件
multi=False # 只改第一条匹配的
)