合并代码后提交

This commit is contained in:
zw
2025-08-13 20:20:13 +08:00
parent cd61c2138a
commit 33610b27b0
6 changed files with 418 additions and 67 deletions

View File

@@ -1,10 +1,18 @@
# 设备模型
class DeviceModel(object):
def __init__(self, deviceId, screenPort, type):
def __init__(self, deviceId, screenPort, width, height, scale, type):
super(DeviceModel, self).__init__()
# 设备id
self.deviceId = deviceId
# 投屏端口
self.screenPort = screenPort
# 屏幕宽度
self.width = width
# 屏幕高度
self.height = height
# 物理分辨率和实际分辨率的倍数
self.scale = scale
# 1 添加 2删除
self.type = type
@@ -14,5 +22,8 @@ class DeviceModel(object):
return {
'deviceId': self.deviceId,
'screenPort': self.screenPort,
"width": self.width,
"height": self.height,
"scale": self.scale,
'type': self.type
}

View File

@@ -16,8 +16,8 @@ accountToken = "xHtil6YiAH2QxDgAYVwCfVafx7xkOoeHVfiVgfqfdwe88KZW5jbRsjDS9ZGFILJS
prologueList = []
# 评论列表
commentsList = []
# 存储主播名和session_id的字典
anchorWithSession = {}
# 安全删除数据
def removeModelFromAnchorList(model: AnchorModel):