Commit 682a7d11 by liuxiaoxing

test

parent 76ac8f9e
...@@ -38,8 +38,8 @@ ry_adplan_name = 'c测试1' ...@@ -38,8 +38,8 @@ ry_adplan_name = 'c测试1'
ry_adcreative_name = 'c测试1' ry_adcreative_name = 'c测试1'
# bytedance_int 今日头条,kuaishou_int 快手,tencentams_int (新)广点通,rryingxiao_int 人人营销 # bytedance_int 今日头条,kuaishou_int 快手,tencentams_int (新)广点通,rryingxiao_int 人人营销
pid = 'rryingxiao_int' pid = 'rryingxiao_int'
URL = 'http://uri6.com/tkio/q6VFJva?noredirect=true' # URL = 'http://uri6.com/tkio/qABBvya?noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/rQVVRna?noredirect=true' URL = 'http://52.80.137.106:8083/tkio/M73iIja?noredirect=true'
# 测试头条衍生事件回调时加上 # 测试头条衍生事件回调时加上
# callback= http%3A%2F%2Fad.toutiao.com%2Ftrack%2Factivate%2F%3Fcallback%3DCKP4rs-Zn4QDEKiQ6teZn4QDGN6L8Y-h9Wcg3ovxj6H1ZyiE0PjgroSEAzAOOM_X-8IDQik0YWY1NzdlOC1lZmViLTRmZDEtYmZkZC00MzE1Zjc1MmJhMGF1NTQ5M0iA0pOtA1AAiAEAkAECmAEA%26os%3D0%26muid%3D # callback= http%3A%2F%2Fad.toutiao.com%2Ftrack%2Factivate%2F%3Fcallback%3DCKP4rs-Zn4QDEKiQ6teZn4QDGN6L8Y-h9Wcg3ovxj6H1ZyiE0PjgroSEAzAOOM_X-8IDQik0YWY1NzdlOC1lZmViLTRmZDEtYmZkZC00MzE1Zjc1MmJhMGF1NTQ5M0iA0pOtA1AAiAEAkAECmAEA%26os%3D0%26muid%3D
...@@ -60,7 +60,7 @@ def computeMD5upper(message): ...@@ -60,7 +60,7 @@ def computeMD5upper(message):
return m.hexdigest().upper() return m.hexdigest().upper()
appkey = '8a390227254c03dbcaddbca009cd6e8b' appkey = 'ee977614c940fc833f474d0696b852a0'
lst = [] lst = []
nowTime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') nowTime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
s = 0 s = 0
...@@ -68,8 +68,8 @@ w = 0 ...@@ -68,8 +68,8 @@ w = 0
for index in range(1): for index in range(1):
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
# 随机生成12为数组 # 随机生成12为数组
i = ''.join(str(random.choice(range(10))) for _ in range(12)) # i = ''.join(str(random.choice(range(10))) for _ in range(12))
# i = '822976099354' i = '884919303042'
o = ''.join(str(random.choice(range(10))) for _ in range(12)) o = ''.join(str(random.choice(range(10))) for _ in range(12))
m = ''.join(str(random.choice(range(10))) for _ in range(12)) m = ''.join(str(random.choice(range(10))) for _ in range(12))
se = ''.join(str(random.choice(range(10))) for _ in range(12)) se = ''.join(str(random.choice(range(10))) for _ in range(12))
...@@ -101,10 +101,10 @@ for index in range(1): ...@@ -101,10 +101,10 @@ for index in range(1):
# ip = '156.119.456.190' # ip = '156.119.456.190'
try: try:
parms = { parms = {
'click_time': str(round(time.time() * 1000)), # 'click_time': str(round(time.time() * 1000)),
# 'androidid': '86ab7f6642bdde717709216e68d0b', # 'androidid': '86ab7f6642bdde717709216e68d0b',
'imei': i, 'imei': i,
'callback_param': 'EPHk9cX3pv4CGJax4ZENKI7w4MDev_4C', # 'callback_param': 'EPHk9cX3pv4CGJax4ZENKI7w4MDev_4C',
# 'imei_MD5': computeMD5upper(i), # 'imei_MD5': computeMD5upper(i),
# 'campuuid': '@#¥%……&……%¥#@#¥%&……&*****', # 'campuuid': '@#¥%……&……%¥#@#¥%&……&*****',
# 'clickid': '测试测试', # 'clickid': '测试测试',
...@@ -135,13 +135,13 @@ for index in range(1): ...@@ -135,13 +135,13 @@ for index in range(1):
# 'muid': "4C63905D9694B9BF8D3EE38E64809A73", # 'muid': "4C63905D9694B9BF8D3EE38E64809A73",
# 'mac': "5432453241421", # 'mac': "5432453241421",
# 子渠道 # 子渠道
'subchannel': '2000', # 'subchannel': '2000',
# 计划 # 计划
'aid': '888', # 'aid': '888',
# 广告位 # 广告位
'siteid': '777', # 'siteid': '777',
# 流量来源 # 流量来源
'csite': '666', # 'csite': '666',
# "timestamp": "1569141628027", # "timestamp": "1569141628027",
# "creative": "31096865315", # "creative": "31096865315",
# "deviceid": 'null', # "deviceid": 'null',
...@@ -173,7 +173,7 @@ for index in range(1): ...@@ -173,7 +173,7 @@ for index in range(1):
print('imei:', i) print('imei:', i)
print('imeimd5:', computeMD5upper(i)) print('imeimd5:', computeMD5upper(i))
# print("ip:", ip) print("ip:", ip)
# print("accountid:", accountid) # print("accountid:", accountid)
print(p.text) print(p.text)
print(p.url) print(p.url)
...@@ -193,27 +193,27 @@ for index in range(1): ...@@ -193,27 +193,27 @@ for index in range(1):
# print('androidid', a) # print('androidid', a)
w = w + 1 w = w + 1
time.sleep(8) # time.sleep(8)
try: # try:
allEvent().installUpload(i, ip, appkey) # allEvent().installUpload(i, ip, appkey)
# allEvent().formevent(i, ip, appkey) # # allEvent().formevent(i, ip, appkey)
#
except Exception: # except Exception:
print('install_wrong:', w) # print('install_wrong:', w)
w = w + 1 # w = w + 1
# # # # # # #
# # # # # # #
# time.sleep(5) # time.sleep(5)
# try: # try:
# allEvent().registerEvent(i, ip, appkey) # allEvent().registerEvent(i, ip, appkey)
# except Exception as e: # except Exception as e:
# print('注册_wrong:', w) # print('注册_wrong:', w)
# print(e) # print(e)
# time.sleep(4) time.sleep(4)
# try: try:
# allEvent().loginEvent(i, ip, appkey) allEvent().loginEvent(i, ip, appkey)
# except Exception: except Exception:
# print('登录_wrong:', w) print('登录_wrong:', w)
# time.sleep(5) # time.sleep(5)
# try: # try:
# allEvent().payEvent(i, ip, appkey) # allEvent().payEvent(i, ip, appkey)
......
...@@ -7,8 +7,8 @@ headers = {'Content-Type': 'application/json', 'X-RY-Access-Token': 'test_access ...@@ -7,8 +7,8 @@ headers = {'Content-Type': 'application/json', 'X-RY-Access-Token': 'test_access
# 测试环境 # 测试环境
URL_batch = 'http://10.3.20.42:8080/receive/batch' URL_batch = 'http://10.3.20.42:8080/receive/batch'
# URL = 'http://52.80.137.106:8080/receive/tkio/' URL = 'http://52.80.137.106:8080/receive/tkio/'
URL = 'http://log.trackingio.com/receive/tkio/' # URL = 'http://log.trackingio.com/receive/tkio/'
# URL = 'http://jisulog.sortda.com/receive/tkio/' # URL = 'http://jisulog.sortda.com/receive/tkio/'
# URL = 'http://172.31.21.207:8080/receive/tkio/' # URL = 'http://172.31.21.207:8080/receive/tkio/'
# URL = 'http://120.53.212.71/receive/tkio/' # URL = 'http://120.53.212.71/receive/tkio/'
...@@ -77,7 +77,7 @@ class allEvent: ...@@ -77,7 +77,7 @@ class allEvent:
# "_campaignid": 'default', # "_campaignid": 'default',
"_deviceid": i, "_deviceid": i,
"_imei": i, "_imei": i,
"mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"28B781FA18D703ECC2348EDD58B921F5\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}", "mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"96AD0BC02C70D0BA5C446C12580E3800\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}",
# '_oaid': '697134960e9ff8df46f21b4f97db595a1', # '_oaid': '697134960e9ff8df46f21b4f97db595a1',
# "_rdid": '09DA91D0664C33DA7BEE7294CCCCCA07', # "_rdid": '09DA91D0664C33DA7BEE7294CCCCCA07',
# 'ua': 'Mozilla/5.0 (Linux; U; Android 7.0; zh-CN; Nexus 5X Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.4.5.937 Mobile Safari/537.36', # 'ua': 'Mozilla/5.0 (Linux; U; Android 7.0; zh-CN; Nexus 5X Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.4.5.937 Mobile Safari/537.36',
...@@ -733,9 +733,9 @@ class allEvent: ...@@ -733,9 +733,9 @@ class allEvent:
"appType": "wap", "appType": "wap",
"appid": appkey, "appid": appkey,
"context": { "context": {
# "_campaignid": "_default_", "_campaignid": "705b4af0976627e2292a56d402cb1d6b",
"_deviceid": i, "_deviceid": i,
# "_cid": "-1", "_cid": "20899",
# "_ry_ts": "1588130655311", # "_ry_ts": "1588130655311",
"_tz": "+8", "_tz": "+8",
"_ip": IP, "_ip": IP,
......
...@@ -8,7 +8,7 @@ import hashlib ...@@ -8,7 +8,7 @@ import hashlib
#安卓常规渠道激活 #安卓常规渠道激活
appkey = 'c48648ecb068a70408e93702e718cc49' appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
# 线上预约app # 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953 # 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd # 16dc0cb882d3dbec4f7f66251a84d6dd
...@@ -39,7 +39,7 @@ for index in range(1): ...@@ -39,7 +39,7 @@ for index in range(1):
# p = '987654321234567' # p = '987654321234567'
# s = '2321321312h8ro321' # s = '2321321312h8ro321'
i = ''.join(str(random.choice(range(10))) for _ in range(12)) i = ''.join(str(random.choice(range(10))) for _ in range(12))
# i = '686032665843' # i = '278623364297'
# i = '00000000-0000-0000-0000-000000000000' # i = '00000000-0000-0000-0000-000000000000'
# 随机生成ipXXXX XXCB489741-0029-4A35-8E38-D142F836B623 # 随机生成ipXXXX XXCB489741-0029-4A35-8E38-D142F836B623
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff))) ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
...@@ -48,9 +48,9 @@ for index in range(1): ...@@ -48,9 +48,9 @@ for index in range(1):
# 60.13.148.23 新疆维吾尔自治区吐鲁番市 # 60.13.148.23 新疆维吾尔自治区吐鲁番市
# 61.139.239.255 广西壮族自治区北海市 # 61.139.239.255 广西壮族自治区北海市
# 119.60.0.0 宁夏回族自治区银川市 # 119.60.0.0 宁夏回族自治区银川市
allEvent().installUpload(i, ip, appkey) # allEvent().installUpload(i, ip, appkey)
# time.sleep(1) # time.sleep(1)
allEvent().startupEvent(i, ip, appkey) # allEvent().startupEvent(i, ip, appkey)
# # time.sleep(1) # # time.sleep(1)
# allEvent().loginEvent(i, ip, appkey) # allEvent().loginEvent(i, ip, appkey)
# time.sleep(1) # time.sleep(1)
...@@ -61,7 +61,7 @@ for index in range(1): ...@@ -61,7 +61,7 @@ for index in range(1):
# time.sleep(1) # time.sleep(1)
# num = index + 1 # num = index + 1
# event = 'event_' + str(num) # event = 'event_' + str(num)
event = 'event_30' event = 'event_5'
allEvent().ziding_event(i, ip, appkey, event) allEvent().ziding_event(i, ip, appkey, event)
# print(s) # print(s)
# s = int(s) + 1 # s = int(s) + 1
...@@ -78,8 +78,8 @@ for index in range(1): ...@@ -78,8 +78,8 @@ for index in range(1):
# allEvent().H5download(i,ip,appkey) # allEvent().H5download(i,ip,appkey)
# time.sleep(1) # time.sleep(1)
# allEvent().H5pv(i,ip,appkey) # allEvent().H5pv(i,ip,appkey)
# time.sleep(1) # # time.sleep(1)
# # #
# allEvent().H5su(i,ip,appkey) # allEvent().H5su(i,ip,appkey)
print("imei:"+i) print("imei:"+i)
# print("pageid:"+p) # print("pageid:"+p)
......
...@@ -32,8 +32,8 @@ w = 0 ...@@ -32,8 +32,8 @@ w = 0
for index in range(1): for index in range(1):
#随机生成12为数组 #随机生成12为数组
i = ''.join(str(random.choice(range(10))) for _ in range(12)) # i = ''.join(str(random.choice(range(10))) for _ in range(12))
# i = '16707072833653' i = '548770268036'
#随机生成ip #随机生成ip
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff))) ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# ip = '175.93.28.70' # ip = '175.93.28.70'
...@@ -98,16 +98,16 @@ for index in range(1): ...@@ -98,16 +98,16 @@ for index in range(1):
# print('注册_wrong:', w) # print('注册_wrong:', w)
# print(e) # print(e)
# # continue # # continue
# time.sleep(2) time.sleep(2)
# try: try:
# allEvent().loginEvent(i, ip, appkey) allEvent().loginEvent(i, ip, appkey)
# except Exception: except Exception:
# print('登录_wrong:', w) print('登录_wrong:', w)
# time.sleep(5) time.sleep(5)
# try: try:
# allEvent().payEvent(i, ip, appkey) allEvent().payEvent(i, ip, appkey)
# except Exception: except Exception:
# print('付费_wrong:', w) print('付费_wrong:', w)
# num = index + 1 # num = index + 1
# event = 'event_' + str(num) # event = 'event_' + str(num)
# event = 'event_28' # event = 'event_28'
......
...@@ -69,7 +69,7 @@ class allEvent: ...@@ -69,7 +69,7 @@ class allEvent:
'uniqueName': '2221', 'uniqueName': '2221',
"_model": model, "_model": model,
"_ryosversion": ryosversion, "_ryosversion": ryosversion,
"mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"60AF84954A2AF80A07249708703519CB\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}", # "mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"60AF84954A2AF80A07249708703519CB\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}",
# 'adgroupId': '324322' # 'adgroupId': '324322'
......
...@@ -19,9 +19,9 @@ for index in range(1): ...@@ -19,9 +19,9 @@ for index in range(1):
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff))) ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# ip = '143.205.125.236' # ip = '143.205.125.236'
allEvent().installUpload(i, ip, appkey, cmpaignid) # allEvent().installUpload(i, ip, appkey, cmpaignid)
# time.sleep(3) # time.sleep(3)
# allEvent().loginEvent(i, ip, appkey) allEvent().loginEvent(i, ip, appkey)
# allEvent().orderEvent(i, ip, appkey) # allEvent().orderEvent(i, ip, appkey)
# time.sleep(1) # time.sleep(1)
# num = index + 1 # num = index + 1
......
...@@ -10,8 +10,8 @@ import hashlib ...@@ -10,8 +10,8 @@ import hashlib
# 向短链发送点击数据 # 向短链发送点击数据
# 渠道短链 # 渠道短链
# URL = 'http://52.80.137.106:8083/tkio/JF7JFja?noredirect=true' # URL = 'http://52.80.137.106:8083/tkio/JF7JFja?noredirect=true'
URL = 'http://uri6.com/tkio/FFvqUja?noredirect=true&impression=true' URL = 'http://uri6.com/tkio/ZfmeMfa?noredirect=true'
appkey = '017bf97c10d7bc79df1b4ed37e77b283' appkey = 'cd9a88d26f715c3a0503dd9a1476cccd'
# URL = 'http://172.31.19.255:8083/tkio/VNNjQra' # URL = 'http://172.31.19.255:8083/tkio/VNNjQra'
event = 'invoke' event = 'invoke'
# 广告创意ID # 广告创意ID
...@@ -77,12 +77,12 @@ for _ in range(1): ...@@ -77,12 +77,12 @@ for _ in range(1):
# Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 SP-engine/2.30.0 baiduboxapp/12.13.0.10 (Baidu; P2 13.6.1) # Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 SP-engine/2.30.0 baiduboxapp/12.13.0.10 (Baidu; P2 13.6.1)
# android # android
# Mozilla/5.0 (Linux; U; Android 7.0; zh-cn; Nexus 5X Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/7.3 Mobile Safari/537.36 # Mozilla/5.0 (Linux; U; Android 7.0; zh-cn; Nexus 5X Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/7.3 Mobile Safari/537.36
# 'ry_adgroup_name': ry_adgroup_name, 'ry_adgroup_name': ry_adgroup_name,
# 'ry_adplan_name': ry_adplan_name, 'ry_adplan_name': ry_adplan_name,
# 'ry_adcreative_name': ry_adcreative_name, 'ry_adcreative_name': ry_adcreative_name,
# "ry_adgroup_id": ry_adgroup_id, "ry_adgroup_id": ry_adgroup_id,
# "ry_adplan_id": ry_adplan_id, "ry_adplan_id": ry_adplan_id,
# "ry_adcreative_id": ry_adcreative_id, "ry_adcreative_id": ry_adcreative_id,
# 'mac': mac # 'mac': mac
} }
# timeout可以超时四秒 # timeout可以超时四秒
...@@ -100,14 +100,14 @@ for _ in range(1): ...@@ -100,14 +100,14 @@ for _ in range(1):
print('idfa:', i) print('idfa:', i)
print('ip', ip) print('ip', ip)
w = w + 1 w = w + 1
# time.sleep(10) time.sleep(10)
# try: try:
# allEvent().installUpload(i, ip, appkey) allEvent().installUpload(i, ip, appkey)
# # allEvent().formevent(i, ip, appkey) # allEvent().formevent(i, ip, appkey)
#
# except Exception: except Exception:
# print('install_wrong:', w) print('install_wrong:', w)
# w = w + 1 w = w + 1
# time.sleep(3) # time.sleep(3)
# try: # try:
# allEvent().adshow(i, ip, appkey,adid) # allEvent().adshow(i, ip, appkey,adid)
...@@ -144,17 +144,17 @@ for _ in range(1): ...@@ -144,17 +144,17 @@ for _ in range(1):
# except Exception: # except Exception:
# print('install_wrong:', w) # print('install_wrong:', w)
# w = w + 1 # w = w + 1
# time.sleep(5) time.sleep(2)
# try: try:
# allEvent().registerEvent(i, ip, appkey) allEvent().registerEvent(i, ip, appkey)
# except Exception as e: except Exception as e:
# print('注册_wrong:', w) print('注册_wrong:', w)
# print(e) print(e)
# time.sleep(4) time.sleep(2)
# try: try:
# allEvent().loginEvent(i, ip, appkey) allEvent().loginEvent(i, ip, appkey)
# except Exception: except Exception:
# print('登录_wrong:', w) print('登录_wrong:', w)
# time.sleep(10) # time.sleep(10)
# try: # try:
# allEvent().ziding_event(i, ip, appkey, event) # allEvent().ziding_event(i, ip, appkey, event)
...@@ -162,15 +162,15 @@ for _ in range(1): ...@@ -162,15 +162,15 @@ for _ in range(1):
# print(err) # print(err)
# print('自定义_wrong:', w) # print('自定义_wrong:', w)
# #
# time.sleep(10) time.sleep(2)
# try: try:
# allEvent().payEvent(i, ip, appkey) allEvent().payEvent(i, ip, appkey)
# except Exception as err: except Exception as err:
# print(err) print(err)
# print('付费_wrong:', w) print('付费_wrong:', w)
# time.sleep(3) time.sleep(2)
# try: try:
# allEvent().payorder(i, ip, appkey) allEvent().payorder(i, ip, appkey)
# except Exception: except Exception:
# print('订单_wrong:', w) print('订单_wrong:', w)
# print("结束时间" + datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # print("结束时间" + datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
...@@ -74,6 +74,7 @@ class allEvent: ...@@ -74,6 +74,7 @@ class allEvent:
# "_oaid":'45F568D4-68DA-875E-BAFD-D3ECEBBCAU56', # "_oaid":'45F568D4-68DA-875E-BAFD-D3ECEBBCAU56',
"_idfv": '64F5A794-A942-4209-81B0-D28FD01E9287', "_idfv": '64F5A794-A942-4209-81B0-D28FD01E9287',
"_ip": IP, "_ip": IP,
"mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"9F58C7997F1909DE56401DF999C7DE17\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}",
# 'ua': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 SP-engine/2.30.0 baiduboxapp/12.13.0.10 (Baidu; P2 13.6.1)', # 'ua': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 SP-engine/2.30.0 baiduboxapp/12.13.0.10 (Baidu; P2 13.6.1)',
'_manufacturer': manufacturer, '_manufacturer': manufacturer,
'_ryos': ryos, '_ryos': ryos,
......
...@@ -46,13 +46,13 @@ global data ...@@ -46,13 +46,13 @@ global data
data = [ data = [
{ {
"application_info": { "application_info": {
"appkey": "111", "appkey": "666",
"bundleid": "3423232", "bundleid": "3423232",
"app_version": "1.9.0", "app_version": "1.9.0",
"channel_name": "HUAWEI" "channel_name": "HUAWEI"
}, },
"timestamp_info": { "timestamp_info": {
"country": "chi", "country": "MG",
"time_zone": "GMT+08", "time_zone": "GMT+08",
"install_time": int(round(time.time() * 1000)), "install_time": int(round(time.time() * 1000)),
"current_event_time": int(round(time.time() * 1000)), "current_event_time": int(round(time.time() * 1000)),
...@@ -116,11 +116,11 @@ data = [ ...@@ -116,11 +116,11 @@ data = [
"bid_type": '' "bid_type": ''
}, },
"custom_params": { "custom_params": {
# "add_cart": "234234", "add_cart": "234234",
# "sku": "234234", "sku": "234234",
# "level_up": "234234", "level_up": "234234",
# "refund": "234234", "refund": "234234",
# "refund_amount": "234234" "refund_amount": "234234"
} }
} }
} }
...@@ -137,9 +137,9 @@ def send_request(): ...@@ -137,9 +137,9 @@ def send_request():
# 对接se地址 # 对接se地址
# url = 'http://tmtest-se.trackingio.com/receive/tkiov2/sdk' # url = 'http://tmtest-se.trackingio.com/receive/tkiov2/sdk'
# 测试 # 测试
# url = "http://tmtest.trackingio.com/receive/tkiov2/sdk" url = "http://tmtest.trackingio.com/receive/tkiov2/sdk"
# 线上 # 线上
url = "http://tkio-receive.solar-engine.com/receive/tkiov2/sdk" # url = "http://tkio-receive.solar-engine.com/receive/tkiov2/sdk"
data[0]['timestamp_info']['install_time'] = int(round(time.time() * 1000)) data[0]['timestamp_info']['install_time'] = int(round(time.time() * 1000))
print(data) print(data)
response = requests.request("POST", url, headers=headers, data=json.dumps(data)) response = requests.request("POST", url, headers=headers, data=json.dumps(data))
......
...@@ -79,6 +79,7 @@ data = [ ...@@ -79,6 +79,7 @@ data = [
"idfv": "3DEA635F-B24F-434B-833F-4ED028FEAEEF", "idfv": "3DEA635F-B24F-434B-833F-4ED028FEAEEF",
"idfv_md5": "c3381276ae145b3663c8e0f6dd9f628a", "idfv_md5": "c3381276ae145b3663c8e0f6dd9f628a",
"carrier": "TEST", "carrier": "TEST",
"language": "cny",
"city": "beijing" "city": "beijing"
}, },
......
...@@ -65,13 +65,13 @@ parms = { ...@@ -65,13 +65,13 @@ parms = {
# 广告账户id。限制64字符内。都选传 # 广告账户id。限制64字符内。都选传
'account_id': '', 'account_id': '',
# 广告组id。限制64字符内。都选传 # 广告组id。限制64字符内。都选传
'adgroup_id': '', 'adgroup_id': '23123213213',
# 广告组名称。限制256字符内。都选传 # 广告组名称。限制256字符内。都选传
'adgroup_name': '', 'adgroup_name': '广告组名称',
# 广告计划id。限制64字符内。都选传 # 广告计划id。限制64字符内。都选传
'adplan_id': '', 'adplan_id': '',
# 广告计划名称。限制256字符内。都选传 # 广告计划名称。限制256字符内。都选传
'adplan_name': '', 'adplan_name': '广告计划名称',
# 广告创意id。限制128字符内。都选传 # 广告创意id。限制128字符内。都选传
'adcreative_id': '', 'adcreative_id': '',
# 广告创意名称。限制256字符内。都选传 # 广告创意名称。限制256字符内。都选传
...@@ -100,7 +100,9 @@ parms = { ...@@ -100,7 +100,9 @@ parms = {
'callback_url': 'https%3A%2F%2Fwww.baidu.com', 'callback_url': 'https%3A%2F%2Fwww.baidu.com',
# 自定触点参数集合。都选传。 # 自定触点参数集合。都选传。
'custom_params_1': 'null' 'custom_params_1': 'custom_params_1',
'custom_params_10': 'custom_params_10'
} }
data_temp = json.dumps(parms) data_temp = json.dumps(parms)
...@@ -128,9 +130,9 @@ def send_request2(): ...@@ -128,9 +130,9 @@ def send_request2():
def send_request3(cs): def send_request3(cs):
global parms global parms
# 测试 # 测试
# url1 = 'http://tmtest.trackingio.com/receive/turl/QN3eQba' + cs url1 = 'http://tmtest.trackingio.com/receive/turl/ruUfUra' + cs
# 线上 # 线上
url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/FFNn2aa' + cs # url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/FFNn2aa' + cs
parms['ts'] = int(round(time.time() * 1000)) parms['ts'] = int(round(time.time() * 1000))
parms['ry_touchpoint_ts'] = int(round(time.time() * 1000)) parms['ry_touchpoint_ts'] = int(round(time.time() * 1000))
response = requests.get(url=url1, params=parms, timeout=10, verify=False) response = requests.get(url=url1, params=parms, timeout=10, verify=False)
......
...@@ -40,25 +40,25 @@ parms = { ...@@ -40,25 +40,25 @@ parms = {
# 广告账户id。限制64字符内。都选传 # 广告账户id。限制64字符内。都选传
'account_id': '123', 'account_id': '123',
# # 广告组id。限制64字符内。都选传 # # 广告组id。限制64字符内。都选传
# 'adgroup_id': '', 'adgroup_id': '11111',
# # 广告组名称。限制256字符内。都选传 # # 广告组名称。限制256字符内。都选传
# 'adgroup_name': '', 'adgroup_name': '测试adgroup_name',
# # 广告计划id。限制64字符内。都选传 # # 广告计划id。限制64字符内。都选传
'adplan_id': '342312312', 'adplan_id': '342312312',
# # 广告计划名称。限制256字符内。都选传 # # 广告计划名称。限制256字符内。都选传
# 'adplan_name': '', 'adplan_name': '测试一下adplan_name',
# # 广告创意id。限制128字符内。都选传 # # 广告创意id。限制128字符内。都选传
'adcreative_id': '1111', 'adcreative_id': '1111',
# # 广告创意名称。限制256字符内。都选传 # # 广告创意名称。限制256字符内。都选传
# 'adcreative_name': '', 'adcreative_name': '213213',
# # 创意类型(例如大图、小图、视频等)。限制16字符内。都选传 # # 创意类型(例如大图、小图、视频等)。限制16字符内。都选传
'adcreative_type': '大图', 'adcreative_type': '乱码大图',
# # 流量媒体id(例如巨量的今日头条、穿山甲、抖音等)。限制32字符内。都选传 # # 流量媒体id(例如巨量的今日头条、穿山甲、抖音等)。限制32字符内。都选传
# 'site_id': '', 'site_id': '323213213213',
# # 流量媒体名称(例如巨量的今日头条、穿山甲、抖音等)。限制128字符内。都选传 # # 流量媒体名称(例如巨量的今日头条、穿山甲、抖音等)。限制128字符内。都选传
# 'site_name': '', 'site_name': '今日头条',
# # 广告类型(例如开屏、信息流、搜索等)。限制32字符内。都选传。 # # 广告类型(例如开屏、信息流、搜索等)。限制32字符内。都选传。
# 'ad_type': '', 'ad_type': '213213213',
# # 广告位id。限制64字符内。都选传 # # 广告位id。限制64字符内。都选传
'placement_id': '222', 'placement_id': '222',
# # 转化id。限制64字符内。都选传 # # 转化id。限制64字符内。都选传
...@@ -75,7 +75,9 @@ parms = { ...@@ -75,7 +75,9 @@ parms = {
'callback_url': 'https%3A%2F%2Furi6.com%2Ftkio%2Fa6ZVNba%3Fnoredirect%3Dtrue', 'callback_url': 'https%3A%2F%2Furi6.com%2Ftkio%2Fa6ZVNba%3Fnoredirect%3Dtrue',
# 自定触点参数集合。都选传。 # 自定触点参数集合。都选传。
# 'custom_params_1': '' 'custom_params_1': '自定义1',
'custom_params_10': '自定义10'
} }
data_temp = json.dumps(parms) data_temp = json.dumps(parms)
......
...@@ -9,9 +9,6 @@ from tkio import clickandroid ...@@ -9,9 +9,6 @@ from tkio import clickandroid
from tkio import tkioreceiveandroid from tkio import tkioreceiveandroid
# md5加密转大写 # md5加密转大写
def computeMD5upper(message): def computeMD5upper(message):
m = hashlib.md5() m = hashlib.md5()
...@@ -67,8 +64,6 @@ def test_imei1(): ...@@ -67,8 +64,6 @@ def test_imei1():
print(ip) print(ip)
# 点击imei=111,oaid=222,androidid=333,mac=444,ip=1.1.1.1,muid=555激活imei=555,oaid=222,androidid=333,mac=444,ip=1.1.1.1 # 点击imei=111,oaid=222,androidid=333,mac=444,ip=1.1.1.1,muid=555激活imei=555,oaid=222,androidid=333,mac=444,ip=1.1.1.1
def test_imei2(): def test_imei2():
i = code_nums1(32) i = code_nums1(32)
...@@ -350,6 +345,7 @@ def test_ip1(): ...@@ -350,6 +345,7 @@ def test_ip1():
tkioreceiveandroid.send_request() tkioreceiveandroid.send_request()
print(i) print(i)
# 点击imei=111,oaid=222,androidid=‘’,mac=444,ip=1.1.1.2,ipv6=2.2.2.2,muid=555,androidid_MD5=898激活imei=888,oaid=999,androidid=333,mac=5444,ip=1.1.1.1,ipv6=2.2.2.2, # 点击imei=111,oaid=222,androidid=‘’,mac=444,ip=1.1.1.2,ipv6=2.2.2.2,muid=555,androidid_MD5=898激活imei=888,oaid=999,androidid=333,mac=5444,ip=1.1.1.1,ipv6=2.2.2.2,
def test_ip2(): def test_ip2():
i = code_nums1(32) i = code_nums1(32)
...@@ -382,10 +378,6 @@ def test_ip2(): ...@@ -382,10 +378,6 @@ def test_ip2():
print(i) print(i)
# --------------------------开启自定义归因后,对选择的设备id以及ip验证----------------------- # --------------------------开启自定义归因后,对选择的设备id以及ip验证-----------------------
# 不选择imei,选择oaid,androidid,mac,ip # 不选择imei,选择oaid,androidid,mac,ip
# imei,oaid,androidid,mac,ip相同,归因到oaid # imei,oaid,androidid,mac,ip相同,归因到oaid
...@@ -440,7 +432,6 @@ def test_at2(): ...@@ -440,7 +432,6 @@ def test_at2():
print(i) print(i)
# 不选择imei,oaid,androidid,选择mac,ip # 不选择imei,oaid,androidid,选择mac,ip
# imei,oaid,androidid,mac,ip相同,归因到mac # imei,oaid,androidid,mac,ip相同,归因到mac
def test_at3(): def test_at3():
...@@ -493,7 +484,6 @@ def test_at4(): ...@@ -493,7 +484,6 @@ def test_at4():
print(i) print(i)
# 展示归因验证 # 展示归因验证
# 开启【自定义归因】-选择mac归因后,展示归因可按照之前逻辑(imei)归因 # 开启【自定义归因】-选择mac归因后,展示归因可按照之前逻辑(imei)归因
def test_at5(): def test_at5():
...@@ -546,7 +536,6 @@ def test_click(): ...@@ -546,7 +536,6 @@ def test_click():
print(ip) print(ip)
def test_hl(): def test_hl():
i = code_nums1(32) i = code_nums1(32)
oaid = code_nums1(15) oaid = code_nums1(15)
...@@ -590,7 +579,6 @@ def test_hl(): ...@@ -590,7 +579,6 @@ def test_hl():
print(ip) print(ip)
# 开启了自定义归因,不按照lastclick归因,按照设备优先级归因 # 开启了自定义归因,不按照lastclick归因,按照设备优先级归因
def test_at6(): def test_at6():
i = code_nums1(32) i = code_nums1(32)
...@@ -625,4 +613,50 @@ def test_at6(): ...@@ -625,4 +613,50 @@ def test_at6():
tkioreceiveandroid.send_request() tkioreceiveandroid.send_request()
print(i) print(i)
print(i2) print(i2)
print(ip) print(ip)
\ No newline at end of file
def test_huiliu():
# i = code_nums1(32)
i = 'jxmqw8bbpj706d812w6q67dfo5pf4428'
oaid = code_nums1(15)
mac = code_nums1(32)
androidid = code_nums1(16)
campaignid = '1111'
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# clickandroid.parms['imei'] = i
# clickandroid.parms['imei_MD5'] = ''
# clickandroid.parms['oaid'] = oaid
# clickandroid.parms['androidid'] = androidid
# clickandroid.parms['mac'] = mac
# clickandroid.parms['ip'] = ip
# clickandroid.send_requestandroid('')
# time.sleep(8)
# tkioreceiveandroid.data['context']['_deviceid'] = i
# tkioreceiveandroid.data['context']['_imei'] = i
# tkioreceiveandroid.data['context']['_oaid'] = oaid
# tkioreceiveandroid.data['context']['_androidid'] = androidid
# tkioreceiveandroid.data['context']['_mac'] = mac
# tkioreceiveandroid.data['context']['_ip'] = ip
# tkioreceiveandroid.data['context']['_campaignid'] = campaignid
# tkioreceiveandroid.send_request()
# time.sleep(300)
clickandroid.parms['imei'] = i
clickandroid.parms['imei_MD5'] = ''
clickandroid.parms['oaid'] = oaid
clickandroid.parms['androidid'] = androidid
clickandroid.parms['mac'] = mac
clickandroid.parms['ip'] = ip
clickandroid.send_requestandroid2('')
time.sleep(8)
tkioreceiveandroid.data['context']['_deviceid'] = i
tkioreceiveandroid.data['context']['_imei'] = i
tkioreceiveandroid.data['context']['_oaid'] = oaid
tkioreceiveandroid.data['context']['_androidid'] = androidid
tkioreceiveandroid.data['context']['_mac'] = mac
tkioreceiveandroid.data['context']['_ip'] = ip
tkioreceiveandroid.data['context']['_campaignid'] = campaignid
tkioreceiveandroid.data['what'] = "loggedin"
tkioreceiveandroid.send_requestlogin()
print(i)
print(ip)
...@@ -32,9 +32,18 @@ parms = { ...@@ -32,9 +32,18 @@ parms = {
def send_requestandroid(hc): def send_requestandroid(hc):
# url1 = 'http://52.80.137.106:8083/tkio/yM3y6fa?noredirect=true' + hc url1 = 'http://52.80.137.106:8083/tkio/rQrYJza?noredirect=true' + hc
url1 = 'http://uri6.com/tkio/q6VFJva?noredirect=true' + hc # url1 = 'http://uri6.com/tkio/q6VFJva?noredirect=true' + hc
response = requests.get(url=url1, params=parms, timeout=10, verify=False) response = requests.get(url=url1, params=parms, timeout=10, verify=False)
print(response.text) print(response.text)
print(url1) print(url1)
return response return response
def send_requestandroid2(hc):
url1 = 'http://52.80.137.106:8083/tkio/uInu6ja?noredirect=true' + hc
# url1 = 'http://uri6.com/tkio/q6VFJva?noredirect=true' + hc
response = requests.get(url=url1, params=parms, timeout=10, verify=False)
print(response.text)
print(url1)
return response
\ No newline at end of file
...@@ -8,7 +8,7 @@ import hashlib ...@@ -8,7 +8,7 @@ import hashlib
data = { data = {
"what": "install", "what": "install",
"appid": "8a390227254c03dbcaddbca009cd6e8b", "appid": "ee977614c940fc833f474d0696b852a0",
"context": { "context": {
"_deviceid": "", "_deviceid": "",
"_imei": "", "_imei": "",
...@@ -42,9 +42,9 @@ data_temp = json.dumps(data) ...@@ -42,9 +42,9 @@ data_temp = json.dumps(data)
def send_request(): def send_request():
global data global data
# 测试 # 测试
# url = "http://52.80.137.106:8080/receive/tkio/install" url = "http://52.80.137.106:8080/receive/tkio/install"
# 线上 # 线上
url = "http://log.trackingio.com/receive/tkio/install" # url = "http://log.trackingio.com/receive/tkio/install"
data['context']['install_time'] = int(round(time.time() * 1000)) data['context']['install_time'] = int(round(time.time() * 1000))
print(data) print(data)
response = requests.request("POST", url, headers=headers, data=json.dumps(data)) response = requests.request("POST", url, headers=headers, data=json.dumps(data))
...@@ -60,9 +60,9 @@ def send_request(): ...@@ -60,9 +60,9 @@ def send_request():
def send_requestlogin(): def send_requestlogin():
global data global data
# 测试 # 测试
# url = "http://52.80.137.106:8080/receive/tkio/loggedin" url = "http://52.80.137.106:8080/receive/tkio/loggedin"
# 线上 # 线上
url = "http://log.trackingio.com/receive/tkio/loggedin" # url = "http://log.trackingio.com/receive/tkio/loggedin"
data['context']['install_time'] = int(round(time.time() * 1000)) data['context']['install_time'] = int(round(time.time() * 1000))
print(data) print(data)
response = requests.request("POST", url, headers=headers, data=json.dumps(data)) response = requests.request("POST", url, headers=headers, data=json.dumps(data))
......
...@@ -2,11 +2,11 @@ from xiaochengxu.xiaochenxu_script import allEvent ...@@ -2,11 +2,11 @@ from xiaochengxu.xiaochenxu_script import allEvent
import socket import socket
import struct import struct
import random import random
appkey = '30a90f0b0cfbde59b206bb046540a17f' appkey = '139ecfd40563dc846383de2b7f38ae7a'
#cid #cid
cid = '-1' cid = '21059'
#surl #surl
surl = '' surl = 'uMnEfqa'
for _ in range(1): for _ in range(1):
# 随机生成12为数组 # 随机生成12为数组
i = ''.join(str(random.choice(range(10))) for _ in range(28)) i = ''.join(str(random.choice(range(10))) for _ in range(28))
......
...@@ -43,6 +43,9 @@ class allEvent: ...@@ -43,6 +43,9 @@ class allEvent:
"_openid":i, "_openid":i,
"_campaignid": surl, "_campaignid": surl,
"_sceneid": "unknown", "_sceneid": "unknown",
"_ry_adgroup_id": "111",
"_ry_adplan_id": "111",
"_ry_adcreative_id": "111",
"_apptype": "wx" "_apptype": "wx"
}, },
"where": "launch", "where": "launch",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment