ai 开始测试
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user