修复启动app接口错误
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user