Exemple #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'])
Exemple #2
0
def touda(device, w, h):
    checkin.touda(device)

    # [x] 开宝箱
    phone.tap(device, 850, 2290)
    phone.tap(device, 890, 2010, gap=3)

    phone.stop_app(device, info.packages['touda'])
Exemple #3
0
def shuqi(device, w, h):
    def watch_advert():
        print('书旗看广告赚金币 ' + datetime.now().time().__str__())
        phone.tap(device, 900, 2150, gap=10)
        time.sleep(30)

    if datetime.now().minute < info.SCHEDULE_TIME:
        checkin.shuqi(device, w, h)
        phone.tap(device, w / 2, 2300)
        # [x] 看广告赚金币
        watch_advert()
        phone.stop_app(device, info.packages['shuqi'])
Exemple #4
0
def toutiao(device, w, h):
    def open_treasure():
        print('今日头条开宝箱 ' + datetime.now().time().__str__())

    checkin.toutiao(device)
    # [x] 阅读头条文章
    app.read_article(device, w, h, num=1)

    # [x] 开宝箱
    phone.tap(device, w / 2, 2330)
    phone.tap(device, 930, 2120, gap=3)

    phone.stop_app(device, info.packages['toutiao'])
Exemple #5
0
def read_article(device, w, h, num):
    print('看文章' + str(num) + '次 ' + datetime.now().time().__str__())
    for i in range(0, num):
        # 获取文章目录
        phone.swipe_down_to_up(device, w / 2, h, internal=300)
        # 点击文章
        phone.tap(device, w / 2, h / 2)
        # 滑动阅读
        for j in range(0, 10):
            phone.swipe_down_to_up(device,
                                   w / 2,
                                   h,
                                   randrange(2, 5),
                                   internal=300)
        # 返回上级目录
        phone.go_back(device)
Exemple #6
0
def yingke(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[1], ROWS[2], gap)
Exemple #7
0
def shuqi(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[0], ROWS[2], gap)
Exemple #8
0
def fanchang(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[2], ROWS[1], gap)
Exemple #9
0
def qutoutiao(device, w, h):
    phone.tap(device, 750, 2330)
Exemple #10
0
def changdou(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[1], ROWS[4], gap)
Exemple #11
0
def qingtuanshe(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[3], ROWS[3], gap)
Exemple #12
0
def kuge(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[1], ROWS[3], gap)
Exemple #13
0
def fanqie(device, w, h):
    checkin.fanqie(device, w, h)
    # [x] 阅读番茄小说
    phone.tap(device, w / 3, h / 3)
    app.read_novel(device, w, h, num=1)
    phone.stop_app(device, info.packages['fanqie'])
Exemple #14
0
 def open_treasure():
     print('抖音极速版开宝箱 ' + datetime.now().time().__str__())
     phone.tap(device, w / 2, h - 100)  # modify
     phone.tap(device, w - 160, h - 200)  # modify
Exemple #15
0
def baidu(device, w, h):
    phone.tap(device, 750, 2330)
Exemple #16
0
def zhongqing(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[3], ROWS[2], gap)
Exemple #17
0
def kuaiyin(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[0], ROWS[3], gap)
Exemple #18
0
 def watch_advert():
     print('书旗看广告赚金币 ' + datetime.now().time().__str__())
     phone.tap(device, 900, 2150, gap=10)
     time.sleep(30)
Exemple #19
0
def momo(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[2], ROWS[3], gap)
Exemple #20
0
def toutiao_benefit_page(device, w, h, gap=3):
    # 点击福利
    phone.tap(device, w / 2, h - 80, gap)  # modify
Exemple #21
0
def eleme(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[0], ROWS[4], gap)
Exemple #22
0
def jingdong(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[0], ROWS[1], gap)
Exemple #23
0
def kuaikandian(device, w, h, gap=10):
    phone.go_home(device)
    phone.tap(device, COLUMNS[2], ROWS[4], gap)
Exemple #24
0
def toutiao(device, w, h):
    phone.tap(device, w / 2, 2340)