diff --git a/Flask/FlaskService.py b/Flask/FlaskService.py index 3660597..9935adc 100644 --- a/Flask/FlaskService.py +++ b/Flask/FlaskService.py @@ -120,15 +120,14 @@ def toHome(): def tapAction(): body = request.get_json() udid = body.get("udid") - x = body.get("x") - y = body.get("y") client = wda.USBClient(udid) session = client.session() session.appium_settings({"snapshotMaxDepth": 0}) - print(client.window_size()) - width = client.window_size()[0] - height = client.window_size()[1] - session.tap(x * width, y * height) + + x = body.get("x") + y = body.get("y") + + session.tap(x, y) return ResultData(data="").toJson() # 拖拽事件 diff --git a/Module/DeviceInfo.py b/Module/DeviceInfo.py index 44acb7b..ac54631 100644 --- a/Module/DeviceInfo.py +++ b/Module/DeviceInfo.py @@ -30,7 +30,6 @@ class Deviceinfo(object): lists = Usbmux().device_list() # 添加设备逻辑 for device in lists: - print(device) if device not in self.deviceArray: self.screenProxy += 1 self.connectDevice(device.udid) diff --git a/resources/eca000fcb6f55d7ed9b4c524055214c26a7de7aa/bgv.png b/resources/eca000fcb6f55d7ed9b4c524055214c26a7de7aa/bgv.png index ba2204a..98ed838 100644 Binary files a/resources/eca000fcb6f55d7ed9b4c524055214c26a7de7aa/bgv.png and b/resources/eca000fcb6f55d7ed9b4c524055214c26a7de7aa/bgv.png differ diff --git a/script/ScriptManager.py b/script/ScriptManager.py index 0feef7e..0bf250c 100644 --- a/script/ScriptManager.py +++ b/script/ScriptManager.py @@ -273,7 +273,8 @@ class ScriptManager(): # 假装看几秒视频 time.sleep(5) - client.swipe_up() + if count != 0: + client.swipe_up() # 右滑返回 client.swipe_right()