临时提交

This commit is contained in:
zw
2025-08-14 13:49:28 +08:00
parent 33610b27b0
commit 4c2bf5d8f2
4 changed files with 7 additions and 8 deletions

View File

@@ -120,15 +120,14 @@ def toHome():
def tapAction():
body = request.get_json()
udid = body.get("udid")
x = body.get("x")
y = body.get("y")
client = wda.USBClient(udid)
session = client.session()
session.appium_settings({"snapshotMaxDepth": 0})
print(client.window_size())
width = client.window_size()[0]
height = client.window_size()[1]
session.tap(x * width, y * height)
x = body.get("x")
y = body.get("y")
session.tap(x, y)
return ResultData(data="").toJson()
# 拖拽事件

View File

@@ -30,7 +30,6 @@ class Deviceinfo(object):
lists = Usbmux().device_list()
# 添加设备逻辑
for device in lists:
print(device)
if device not in self.deviceArray:
self.screenProxy += 1
self.connectDevice(device.udid)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 899 KiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@@ -273,7 +273,8 @@ class ScriptManager():
# 假装看几秒视频
time.sleep(5)
client.swipe_up()
if count != 0:
client.swipe_up()
# 右滑返回
client.swipe_right()