ai 开始测试

This commit is contained in:
2025-09-01 21:51:36 +08:00
parent e20d81144d
commit 8317470fb5
7 changed files with 416 additions and 322 deletions

View File

@@ -126,6 +126,7 @@ class Deviceinfo(object):
# ----------------------------
def connectDevice(self, identifier: str):
# 1) 连接 WDAUSBClient -> 设备 8100
try:
d = wda.USBClient(identifier, 8100)
LogManager.info("启动 WDA 成功", identifier)

View File

@@ -310,5 +310,19 @@ def monitorMessages():
return ResultData(data="").toJson()
@app.route("/upLoadLogFile", methods=['POST'])
def upLoadLogFile():
ok = LogManager.upload_all_logs(
server_url="http://127.0.0.1:6000/upload",
extra_data={"project": "TikTokAuto", "env": "dev"}
)
if ok:
return ResultData(data="日志上传成功").toJson()
else:
return ResultData(data="", msg="日志上传失败").toJson()
if __name__ == '__main__':
app.run("0.0.0.0", port=5000, debug=True, use_reloader=False)