11号晚临时提交
This commit is contained in:
@@ -10,6 +10,8 @@ WdaAppBundleId = "com.vv.wda.xctrunner"
|
||||
anchorList: list[AnchorModel] = []
|
||||
# 线程锁
|
||||
anchorListLock = threading.Lock()
|
||||
# 账号token
|
||||
accountToken = None
|
||||
|
||||
# 安全删除数据
|
||||
def removeModelFromAnchorList(model: AnchorModel):
|
||||
@@ -21,4 +23,4 @@ def addModelToAnchorList(models: list[Dict[str, Any]]):
|
||||
with anchorListLock:
|
||||
for dic in models:
|
||||
obj = AnchorModel.dictToModel(dic)
|
||||
anchorList.append(obj)
|
||||
anchorList.append(obj)
|
||||
|
||||
Reference in New Issue
Block a user