调整项目结构

This commit is contained in:
zw
2025-08-05 15:41:20 +08:00
parent aaf371a001
commit 1007415212
7 changed files with 135 additions and 254 deletions

View File

@@ -96,7 +96,7 @@ def deviceAppList():
non_system_apps = [app for app in apps if not app["bundleId"].startswith("com.apple")]
return ResultData(data=non_system_apps).toJson()
# 打开置顶app
# 打开指定app
@app.route('/launchApp', methods=['POST'])
def launchApp():
body = request.get_json()
@@ -125,7 +125,10 @@ def tapAction():
client = wda.USBClient(udid)
session = client.session()
session.appium_settings({"snapshotMaxDepth": 0})
session.tap(x, y)
print(client.window_size())
width = client.window_size()[0]
height = client.window_size()[1]
session.tap(x * width, y * height)
return ResultData(data="").toJson()
# 拖拽事件