fastapi 封装

This commit is contained in:
shikong 2024-08-01 20:46:45 +08:00
parent 7dd3eb820b
commit 31f60e8be5
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -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})")