This commit is contained in:
wangzhengzhen
2024-12-30 17:43:16 +08:00
parent 505e803142
commit 509068cb54
3 changed files with 32 additions and 20 deletions

View File

@@ -13,6 +13,8 @@ def main():
wikoHi70m = WikoHi70m('3URNU24803102309')
# 任务
watchAdTask = apps.Task("看广告", apps.Rule.count(500, 45, 2),
lambda : apps.TomatoListen(wikoHi70m).func_ad())
watchVideoTask = apps.Task.watch_video("刷视频", apps.Rule.count(500, 8, 2), wikoHi70m)
bgWatchVideoTask = apps.Task("后台刷视频", apps.Rule.count(500, 8, 2),
lambda : wikoHi70m.swipe(240 + int(random.uniform(-10, 10)), 1200 + int(random.uniform(-10, 10)), 240 + int(random.uniform(-10, 10)), 1100 + int(random.uniform(-10, 10)), 50))
@@ -24,9 +26,9 @@ def main():
bgReadBookTask = apps.Task("后台看书", apps.Rule.count(1000, 5, 2),
lambda : wikoHi70m.swipe(500 + int(random.uniform(-10, 10)), 1200 + int(random.uniform(-10, 10)), 240 + int(random.uniform(-10, 10)), 1200 + int(random.uniform(-10, 10)), 80))
watchAdTask.start()
# 看视频+小窗看书,同步执行
sync_task(bgWatchVideoTask, minReadBookTask)
# sync_task(bgWatchVideoTask, minReadBookTask)
# 任务完成锁屏
wikoHi70m.lock()