修复启动app接口错误

This commit is contained in:
2025-10-23 22:06:31 +08:00
parent bfb105f324
commit dcb3f8e5af
2 changed files with 3 additions and 7 deletions

View File

@@ -176,11 +176,10 @@ def launchApp():
body = request.get_json()
udid = body.get("udid")
bundleId = body.get("bundleId")
t = tidevice.Device(udid)
t.app_start(bundleId)
t = wda.USBClient(udid, wdaFunctionPort)
t.session().app_start(bundleId)
return ResultData(data="").toJson()
# 回到首页
@app.route('/toHome', methods=['POST'])
def toHome():
@@ -190,7 +189,6 @@ def toHome():
client.home()
return ResultData(data="").toJson()
# 点击事件
@app.route('/tapAction', methods=['POST'])
def tapAction():