修复启动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

4
.idea/workspace.xml generated
View File

@@ -6,9 +6,7 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="eceeff5e-51c1-459c-a911-d21ec090a423" name="Changes" comment="20250904-初步功能已完成"> <list default="true" id="eceeff5e-51c1-459c-a911-d21ec090a423" name="Changes" comment="20250904-初步功能已完成">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Module/DeviceInfo.py" beforeDir="false" afterPath="$PROJECT_DIR$/Module/DeviceInfo.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/Module/FlaskService.py" beforeDir="false" afterPath="$PROJECT_DIR$/Module/FlaskService.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Module/IOSActivator.py" beforeDir="false" afterPath="$PROJECT_DIR$/Module/IOSActivator.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Utils/LogManager.py" beforeDir="false" afterPath="$PROJECT_DIR$/Utils/LogManager.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

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