From 31f60e8be58f400a4add5c4f903a17ccfb0dabcb Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Thu, 1 Aug 2024 20:46:45 +0800 Subject: [PATCH] =?UTF-8?q?fastapi=20=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index a7f792d..efa2725 100644 --- a/main.py +++ b/main.py @@ -76,6 +76,8 @@ async def douyin_task(item: Device): endY = random.randint(0, int(height/10)) startY = round(endY * 9.75, 1) + if startY - endY < (height / 3): + startY += round((height / 3), 1) # d.swipe_ext("up", scale=0.95, duration=0.1) print(f"({startX}, {startY}) => ({endX}, {endY})")