Example #1
0
def diantao(device, w, h):
    if datetime.now().hour > 8:
        checkin.diantao(device)
        # [x] 点击进入直播页面
        phone.tap(device, w / 3, h / 3, gap=5)
        app.watch_video(device, w, h, num=10)
        phone.stop_app(device, info.packages['diantao'])
Example #2
0
def douyin(device, w, h):
    def open_treasure():
        print('抖音极速版开宝箱 ' + datetime.now().time().__str__())
        phone.tap(device, w / 2, h - 100)  # modify
        phone.tap(device, w - 160, h - 200)  # modify

    checkin.douyin(device)
    # [x] 看抖音视频
    app.watch_video(device, w, h, num=10)
    # [x] 开宝箱
    open_treasure()
    phone.stop_app(device, info.packages['douyin'])
Example #3
0
def shuabao(device, w, h):
    checkin.shuabao(device)
    app.watch_video(device, w, h, num=10)
    phone.stop_app(device, info.packages['shuabao'])
Example #4
0
def douhuo(device, w, h):
    checkin.douhuo(device)
    app.watch_video(device, w, h, num=10)
    phone.stop_app(device, info.packages['douhuo'])
Example #5
0
def weishi(device, w, h):
    checkin.weishi(device)
    # [x] 看微视视频
    app.watch_video(device, w, h, num=10)
    phone.stop_app(device, info.packages['weishi'])
Example #6
0
def kuaishou(device, w, h):
    checkin.kuaishou(device)
    # [x] 看快手视频
    app.watch_video(device, w, h, num=20)
    phone.stop_app(device, info.packages['kuaishou'])