ai 开始测试

This commit is contained in:
2025-09-03 19:03:34 +08:00
parent 8317470fb5
commit b555712749
7 changed files with 251 additions and 64 deletions

View File

@@ -15,15 +15,18 @@ commentsList = []
# 存储主播名和session_id的字典
anchorWithSession = {}
token = ''
# 安全删除数据
def removeModelFromAnchorList(model: AnchorModel):
with anchorListLock:
anchorList.remove(model)
# 添加数据
def addModelToAnchorList(models: list[Dict[str, Any]]):
with anchorListLock:
for dic in models:
obj = AnchorModel.dictToModel(dic)
anchorList.append(obj)