From 7c1bdcbe248abdbb6f4cec8a2ab944974e239fe1 Mon Sep 17 00:00:00 2001 From: wangzz Date: Sun, 29 Dec 2024 23:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=89=8B=E5=A2=9E=E5=8A=A0=E7=9C=8B?= =?UTF-8?q?=E4=B9=A6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/apps.py | 5 +++++ script/main.py | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/script/apps.py b/script/apps.py index 6683b47..8681df9 100644 --- a/script/apps.py +++ b/script/apps.py @@ -113,6 +113,11 @@ class KuaishouLite(_App): _exec(rule, lambda : self.device.swipe_up(120, 80), "看视频中") print("看视频任务完成") + def read_book(self, rule): + print("开始看书任务...") + _exec(rule, lambda : self.device.swipe_left(300, 100), "看书中") + print("看书任务完成") + class TomatoListen(_App): def __init__(self, device): _App.__init__(self, "番茄畅听") diff --git a/script/main.py b/script/main.py index c4ff88d..2ac5872 100644 --- a/script/main.py +++ b/script/main.py @@ -19,13 +19,15 @@ def main(): try: - wikoHi70m = WikoHi70m('3URNU24803102309') + # 3URNU24803102309 192.168.8.138:5555 + wikoHi70m = WikoHi70m('192.168.8.138:5555') # apps._exec(apps.Rule.count(500, 5, 2), lambda : app_custom(wikoHi70m), "任务执行中") # 快手 # kuaishouLite = apps.KuaishouLite(wikoHi70m) - # kuaishouLite.watch_video(apps.Rule.count(500, 10, 2)) + # kuaishouLite.watch_video(apps.Rule.count(500, 12, 2)) + # kuaishouLite.read_book(apps.Rule.count(1000, 5, 2)) # 抖音 # douyinLite = apps.DouyinLite(wikoHi70m) @@ -39,16 +41,17 @@ def main(): # 头条 # toutiaoLite = apps.ToutiaoLite(wikoHi70m) - # toutiaoLite.watch_ad(apps.Rule.count(500, 10, 2)) + # toutiaoLite.watch_video(apps.Rule.count(500, 8, 2)) + # toutiaoLite.watch_ad(apps.Rule.count(500, 45, 2)) # 番茄畅听 # tomatoListen = apps.TomatoListen(wikoHi70m) # tomatoListen.read_book(apps.Rule.count(1000, 5, 2)) - # tomatoListen.watch_video(apps.Rule.count(500, 10, 2)) + # tomatoListen.watch_video(apps.Rule.count(500, 12, 3)) # 番茄小说 - tomatoFiction = apps.TomatoFiction(wikoHi70m) - tomatoFiction.read_book(apps.Rule.count(1000, 5, 2)) + # tomatoFiction = apps.TomatoFiction(wikoHi70m) + # tomatoFiction.read_book(apps.Rule.count(1000, 5, 2)) # tomatoFiction.watch_video(apps.Rule.count(500, 10, 2)) # 任务完成锁屏