android_fenlianjie.py 1010 Bytes
Newer Older
liuxiaoxing committed
1 2 3 4 5 6 7 8 9 10
from fenbao_android_event.android_script import allEvent
import struct
import socket
import random
import time
import time
#安卓分包激活
appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
#57ed2dd31596bb4682471e82c0c73c1a
# 4b25b8a4dc584e63e9a7b81c3adedf2f
liuxiaoxing committed
11
# event = 'event_10'
liuxiaoxing committed
12

liuxiaoxing committed
13 14
cmpaignid = '233445'
for index in range(1):
liuxiaoxing committed
15 16
    # 随机生成12为数组
    # i = ''.join(str(random.choice(range(10))) for _ in range(12))
liuxiaoxing committed
17
    i = '691007221237'
liuxiaoxing committed
18
    # 随机生成ip
liuxiaoxing committed
19 20
    ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
    # ip = '143.205.125.236'
liuxiaoxing committed
21 22 23 24

    # allEvent().installUpload(i, ip, appkey, cmpaignid)
    # time.sleep(3)
    # allEvent().loginEvent(i, ip, appkey)
liuxiaoxing committed
25 26 27 28
    allEvent().orderEvent(i, ip, appkey)
    time.sleep(1)
    # num = index + 1
    # event = 'event_' + str(num)
liuxiaoxing committed
29 30 31 32 33 34 35
    # allEvent().ziding_event(i, ip, appkey,event)
    allEvent().payEvent(i, ip, appkey)
    # allEvent().registerEvent(i, ip, appkey)
    # allEvent().invoke_test(i, ip, appkey,cmpaignid)


    print(i)