临时提交

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()
# 拖拽事件