Commit 2e06947d by liuxiaoxing

Merge remote-tracking branch 'remotes/origin/recieveandroid-se' into receiveios-asa

# Conflicts: # microservices/receiveandroid.py # microservices/receiveios.py 新增tkio归因脚本
parent ae39259b
from android_event.android_script import allEvent
import struct
import socket
import random
# def test_at1():
\ No newline at end of file
import requests
url = "http://log.trackingio.com/receive/tkio//install"
payload="{\"what\": \"install\",\"appid\": \"d7fbbb5410a9b70754c9d1e8f16741b3\",\"context\": {\t\"_deviceid\": \"AHDIF5CJ-2JV8-FIPS-4RYB-PTTEMXYHUFVB\",\t\"_idfa\": \"AHDIF5CJ-2JV8-FIPS-4RYB-PTTEMXYHUFVB\",\t\"_idfv\": \"64F5A794-A942-4209-81B0-D28FD01E9287\",\t\"_ip\": \"125.121.15.3\",\t\"_manufacturer\": \"vivo\",\t\"_ryos\": \"ios\",\t\"_rydevicetype\": \"vivox9\",\t\"_networktype\": \"5g\",\t\"_resolution\": \"1344*750\",\t\"_carrier\": \"\\u4e2d\\u56fd\\u8054\\u901a\",\t\"_timestamp\": 1655291783782,\t\"_model\": \"jixing\",\t\"_ryosversion\": \"13.6.1\",\t\"__model\": \"jixing\"},\"when\": \"2022-06-15 19:16:23\",\"ds\": \"2022-06-15\",\"who\": \"lxx_test\"\n}"
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
......@@ -149,6 +149,7 @@ class allEvent:
})
p = requests.post(url=URL+'install',data=s,headers=headers,timeout=5)
print(p.text)
print(s)
# 启动
......
......@@ -25,7 +25,7 @@ for index in range(1):
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# ip = '61.192.125.69'
allEvent().installUpload(i,ip,appkey)
allEvent().startupEvent(i, ip, appkey)
# allEvent().startupEvent(i, ip, appkey)
# time.sleep(10)
# allEvent().loginEvent(i, ip, appkey)
# allEvent().registerEvent(i, ip, appkey)
......
......@@ -1001,7 +1001,7 @@ def test_atb42():
receiveandroid.data[0]['device_info']['device_id'] = g
receiveandroid.data[0]['device_info']['device_id_type'] = 'gaid'
receiveandroid.send_request()
print(i)
print(g)
# 安卓精准归因-androidid归因查询
......@@ -1010,12 +1010,12 @@ def test_atb43():
redirectandroid.parms['android_id'] = a
redirectandroid.parms['imei1'] = q
redirectandroid.send_request3('')
time.sleep(10)
time.sleep(5)
receiveandroid.data[0]['device_info']['android_id'] = a
receiveandroid.data[0]['device_info']['device_id'] = a
receiveandroid.data[0]['device_info']['device_id_type'] = 'android_id'
receiveandroid.send_request()
print(i)
print(a)
# b8e5e389e1223ffa16a5a9420258383d 8221(Mintegral)渠道短链:beEJbma 2586(快手)渠道短链: FV73Yra
......
......@@ -1207,7 +1207,7 @@ def test_atb44():
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('')
time.sleep(5)
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
......
......@@ -97,7 +97,7 @@ parms = {
# 渠道回调id。限制256字符。都选传
'callback_id': 'EJiw267wvfQCGKf2g74ZIPD89-vIATAMOAFCIjIwMTkxMTI3MTQxMTEzMDEwMDI2MDc3MjE1MTUwNTczNTBIAQ==',
# 渠道回调地址。限制256字符。都选传
'callback_url': 'http%3A%2F%2Ftracking.e.qq.com%2Fconv%3Fcb%3DMTIzYWJjNDU2ZGVm%26conv_id%3D12345678',
'callback_url': 'https%3A%2F%2Fwww.baidu.com',
# 自定触点参数集合。都选传。
'custom_params_1': 'null'
......
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