Commit f5dc8483 by liuxiaoxing

新增tkio归因脚本

parent 2ff466af
......@@ -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 = 'http://52.80.137.106:8080/receive/tkio/'
URL = 'http://log.trackingio.com/receive/tkio/'
URL = 'http://52.80.137.106:8080/receive/tkio/'
# URL = 'http://log.trackingio.com/receive/tkio/'
# URL = 'http://jisulog.sortda.com/receive/tkio/'
# URL = 'http://172.31.21.207:8080/receive/tkio/'
# URL = 'http://120.53.212.71/receive/tkio/'
......
......@@ -8,7 +8,7 @@ import hashlib
#安卓常规渠道激活
appkey = '7f43b32bad452c092096136c9be73d09'
appkey = '65a61151b2af3ee371ada521a1f9efef'
# 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd
......@@ -61,8 +61,8 @@ for index in range(1):
# time.sleep(1)
# num = index + 1
# event = 'event_' + str(num)
# event = 'event_30'
# allEvent().ziding_event(i, ip, appkey, event)
event = 'event_30'
allEvent().ziding_event(i, ip, appkey, event)
# print(s)
# s = int(s) + 1
# time.sleep(3)
......
......@@ -46,9 +46,7 @@ global data
data = [
{
"application_info": {
# 线上-a8ed96ae9051499fd98bc46ab9c9495c
# 测试-decbeb4d840b4bcd1a068ca7233e6ac2
"appkey": "ea5f9f976bc7e58adcb39effc5a405e3",
"appkey": "111",
"bundleid": "3423232",
"app_version": "1.9.0",
"channel_name": "HUAWEI"
......@@ -139,9 +137,9 @@ def send_request():
# 对接se地址
# 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))
print(data)
response = requests.request("POST", url, headers=headers, data=json.dumps(data))
......@@ -1221,7 +1219,7 @@ def test_event_info():
assert response["status"] == "142"
# eevent_name为空
# event_name为空
def test_event_info():
data[0]["event_info"]['event_name'] = ''
response = send_request()
......
......@@ -37,7 +37,7 @@ global data
data = [
{
"application_info": {
"appkey": "2a33891fd3ea53f8edb0fca391a2432e",
"appkey": "222",
"bundleid": "3423232",
"app_version": "1.9.0",
"channel_name": "default"
......@@ -160,9 +160,9 @@ def send_request():
# 对接se地址
# 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']['current_event_time'] = int(round(time.time() * 1000))
......
......@@ -128,10 +128,11 @@ def send_request2():
def send_request3(cs):
global parms
# 测试
url1 = 'http://tmtest.trackingio.com/receive/turl/QN3eQba' + cs
# url1 = 'http://tmtest.trackingio.com/receive/turl/QN3eQba' + cs
# 线上
# url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/MFBfqqa' + cs
url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/FFNn2aa' + cs
parms['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)
print(response.url)
print(response.text)
......
......@@ -102,9 +102,9 @@ def send_request(cs):
def send_request3(cs):
global parms
# 测试
url1 = 'http://tmtest.trackingio.com/receive/turl/I3eYvea' + cs
# url1 = 'http://tmtest.trackingio.com/receive/turl/I3eYvea' + cs
# 线上
# url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/qY7fQza' + cs
url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/6Z3Yrya' + cs
parms['ts'] = int(round(time.time() * 1000))
response = requests.get(url=url1, params=parms, timeout=10, verify=False)
print(response.url)
......
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