Commit c44dd137 by liuxiaoxing

日常迭代

parent a6a1e5d6
...@@ -52,8 +52,8 @@ ry_adplan_name = 'c测试1' ...@@ -52,8 +52,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/EB7fIza?noredirect=true&callback_param=B.vgcH5jYqoquzezEA' URL = 'http://uri6.com/tkio/aAvmI3a?noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/RnmYB3a?noredirect=true' # URL = 'http://52.80.137.106:8083/tkio/zuAnuqa?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
...@@ -115,6 +115,7 @@ for index in range(1): ...@@ -115,6 +115,7 @@ for index in range(1):
# ip = '156.119.456.190' # ip = '156.119.456.190'
try: try:
parms = { parms = {
# 'clickid':'223123211312',
'click_time': str(round(time.time() * 1000)), 'click_time': str(round(time.time() * 1000)),
# 'click_time': '1666271211', # 'click_time': '1666271211',
...@@ -145,11 +146,11 @@ for index in range(1): ...@@ -145,11 +146,11 @@ for index in range(1):
"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,
"project_id":proiect_id, # "project_id":proiect_id,
"advert_id":advert_id, # "advert_id":advert_id,
"project_name": proiect_name, # "project_name": proiect_name,
"advert_name": advert_name, # "advert_name": advert_name,
# # # # 账户id # # # # # 账户id
"accountid": accountid, "accountid": accountid,
# 'imei2': 'null', # 'imei2': 'null',
# 'meid': i # 'meid': i
...@@ -236,28 +237,28 @@ for index in range(1): ...@@ -236,28 +237,28 @@ for index in range(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(3) # time.sleep(3)
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(3)
try: # try:
allEvent().payorder(i, ip, appkey) # allEvent().payorder(i, ip, appkey)
except Exception: # except Exception:
print('订单_wrong:', w) # print('订单_wrong:', w)
# time.sleep(3) # time.sleep(3)
...@@ -305,7 +306,7 @@ for index in range(1): ...@@ -305,7 +306,7 @@ for index in range(1):
# #
# num = index + 1 # num = index + 1
# event = 'event_' + str(num) # event = 'event_' + str(num)
# event = 'event_28' # event = 'event_26'
# time.sleep(2) # time.sleep(2)
# try: # try:
# allEvent().ziding_event(i, ip, appkey, event) # allEvent().ziding_event(i, ip, appkey, event)
......
...@@ -82,7 +82,7 @@ class allEvent: ...@@ -82,7 +82,7 @@ class allEvent:
"_imei": i, "_imei": i,
# "_meid":i, # "_meid":i,
# "mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"96AD0BC02C70D0BA5C446C12580E3800\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}", # "mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"96AD0BC02C70D0BA5C446C12580E3800\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}",
'_oaid': i, # '_oaid': i,
# "_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',
# "idfa": i, # "idfa": i,
...@@ -273,13 +273,13 @@ class allEvent: ...@@ -273,13 +273,13 @@ class allEvent:
'context': { 'context': {
# "_apptype": "wap", # "_apptype": "wap",
'_deviceid': i, '_deviceid': i,
'_imei': 'UNKNOWN', '_imei': i,
"_meid": 'UNKNOWN', "_meid": 'UNKNOWN',
# "_idfv": i, # "_idfv": i,
# '_androidid':i, '_androidid':i,
'_ip': IP, '_ip': IP,
'_timestamp': current_time_13, '_timestamp': current_time_13,
'_oaid': i, '_oaid': 'unknown',
"_lib_version": lv, "_lib_version": lv,
}, },
...@@ -448,7 +448,7 @@ class allEvent: ...@@ -448,7 +448,7 @@ class allEvent:
# "appType": "wx", # "appType": "wx",
'appid': appkey, 'appid': appkey,
'context': { 'context': {
"_apptype": "quickApp", # "_apptype": "quickApp",
# "_apptype": "wx", # "_apptype": "wx",
'_deviceid': i, '_deviceid': i,
'_imei': i, '_imei': i,
......
...@@ -10,7 +10,7 @@ import hashlib ...@@ -10,7 +10,7 @@ import hashlib
#安卓常规渠道激活 #安卓常规渠道激活
appkey = 'd58151cfff3f88b7fd3372fa5f596b44' appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
# 线上预约app # 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953 # 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd # 16dc0cb882d3dbec4f7f66251a84d6dd
...@@ -30,7 +30,7 @@ appkey = 'd58151cfff3f88b7fd3372fa5f596b44' ...@@ -30,7 +30,7 @@ appkey = 'd58151cfff3f88b7fd3372fa5f596b44'
# allEvent().payEvent(i, ip, appkey) # allEvent().payEvent(i, ip, appkey)
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
for index in range(1): for index in range(3):
# 随机生成12为数组 # 随机生成12为数组
s = ''.join(str(random.choice(range(10))) for _ in range(18)) s = ''.join(str(random.choice(range(10))) for _ in range(18))
p = ''.join(str(random.choice(range(10))) for _ in range(12)) p = ''.join(str(random.choice(range(10))) for _ in range(12))
...@@ -40,18 +40,19 @@ for index in range(1): ...@@ -40,18 +40,19 @@ 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 = '845743133230' i = '481217762786'
# 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)))
# ip = '109.64.182.29' # ip = '109.64.182.29'
# 地域测试ip # 地域测试ip
# 60.13.148.23 新疆维吾尔自治区吐鲁番市 # 60.13.148.23 新疆维吾尔自治区吐鲁番市
# 61.139.239.255 广西壮族自治区北海市 # 61.139.239.255 广西壮族自治区北
# 海市
# 119.60.0.0 宁夏回族自治区银川市 # 119.60.0.0 宁夏回族自治区银川市
# start_time = time.time() # start_time = time.time()
allEvent().installUpload(i, ip, appkey) # allEvent().installUpload(i, ip, appkey)
# # print("time===>",(time.time()-start_time)) # # print("time===>",(time.time()-start_time))
# # time.sleep(1) # # time.sleep(1)
# allEvent().startupEvent(i, ip, appkey) # allEvent().startupEvent(i, ip, appkey)
...@@ -65,8 +66,8 @@ for index in range(1): ...@@ -65,8 +66,8 @@ 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_5' event = 'event_26'
# 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
# time.sleep(3) # time.sleep(3)
......
...@@ -8,18 +8,18 @@ import time ...@@ -8,18 +8,18 @@ import time
#向短链发送点击数据 #向短链发送点击数据
#!!!!分包需要删掉https的s #!!!!分包需要删掉https的s
URL = 'http://uri6.com/tkio/fUf6jua?noredirect=true' # URL = 'http://uri6.com/tkio/fUf6jua?noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/vEbMRba?noredirect=true' URL = 'http://52.80.137.106:8083/tkio/2yyEnua?noredirect=true'
appkey = '16dc0cb882d3dbec4f7f66251a84d6dd' appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
# event = 'invoke' # event = 'invoke'
cmpaignid = '8888' cmpaignid = '8888'
# 广告创意ID # 广告创意ID
ry_adcreative_id = '111' ry_adcreative_id = 'B333'
# 广告组ID # 广告组ID
ry_adgroup_id = '111' ry_adgroup_id = 'B333'
# 广告计划ID # 广告计划ID
ry_adplan_id = '111' ry_adplan_id = 'B333'
# 广告组名称 # 广告组名称
ry_adgroup_name = '广告组' ry_adgroup_name = '广告组'
# 广告计划名称 # 广告计划名称
...@@ -59,9 +59,9 @@ for index in range(1): ...@@ -59,9 +59,9 @@ for index in range(1):
"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,
"project_id": '111', "project_id": 'B333',
"advert_id": '111', "advert_id": 'B333',
"accountid": '111' "accountid": 'B333'
} }
......
...@@ -745,7 +745,8 @@ def test_at27(): ...@@ -745,7 +745,8 @@ def test_at27():
# 特殊渠道CAID传值处理 # --------------------------------特殊渠道CAID传值处理----------------------------
# Bilibili # Bilibili
def test_at28(): def test_at28():
i = idfacode() i = idfacode()
...@@ -875,6 +876,21 @@ def test_uccaid(): ...@@ -875,6 +876,21 @@ def test_uccaid():
# [{"caid":"81bcddc91ea559bb711cfaf0b55cae53","version":"20211207"},{"caid":"0f1e07a50956d6af4a63c79106fa3e68","version":"20220111"}]
# taptap
def test_tapcaid():
i = idfacode()
ip1 = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
clickios.parms['idfa'] = i
clickios.parms['ip'] = ip1
clickios.parms['caid'] = '%5B%7B%22caid%22%3A%2237a6259cc0c1dae299a7866489dff0bd%22%2C%22version%22%3A%2220211207%22%7D%2C%7B%22caid%22%3A%222f1e07a50956d6af4a63c79106fa3e68%22%2C%22version%22%3A%2220220111%22%7D%5D'
clickios.send_requestandroid('')
print('点击')
print(i)
# 点击存储 # 点击存储
def test_at30(): def test_at30():
......
...@@ -32,8 +32,8 @@ parms = { ...@@ -32,8 +32,8 @@ parms = {
def send_requestandroid(hc): def send_requestandroid(hc):
# url1 = 'http://52.80.137.106:8083/tkio/F3QVrqa?noredirect=true' + hc # url1 = 'http://52.80.137.106:8083/tkio/zyMRnea?noredirect=true' + hc
url1 = 'http://uri6.com/tkio/ayERVfa?noredirect=true' + hc url1 = 'http://uri6.com/tkio/rUJ3uea?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)
......
...@@ -8,7 +8,7 @@ import hashlib ...@@ -8,7 +8,7 @@ import hashlib
data = { data = {
"what": "install", "what": "install",
"appid": "60763edf19602c0fa27b967c282fe805", "appid": "0ecc232109dc25bfedff8aba06271539",
"context": { "context": {
"_deviceid": "", "_deviceid": "",
"_idfa": "", "_idfa": "",
...@@ -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))
......
...@@ -5,26 +5,26 @@ import random ...@@ -5,26 +5,26 @@ import random
import time import time
import requests import requests
appkey = 'adaf8e594702fa369ada109fd49f4d5e' appkey = '380292be6ea70e2d44ad466ad77c9d6d'
# cid # cid
cid = '21029' cid = '21059'
# surl # surl
surl = 'BVjQf2a' surl = 'BB7juya'
# URL = 'http://52.80.137.106:8083/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111' # URL = 'http://52.80.137.106:8083/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111'
URL = 'http://uri6.com/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111' URL = 'http://uri6.com/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111'
impressionid = ''.join(str(random.choice(range(10))) for _ in range(12)) impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
requestid = ''.join(str(random.choice(range(10))) for _ in range(12)) requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
s = 0 s = 0
for index in range(1): # for index 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))
# i = '2539452844786738942022514936' # # i = '2539452844786738942022514936'
# 随机生成ip # # 随机生成ip
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff))) # ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
#
# 打开 # # 打开
allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, requestid) # allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, requestid)
# # # time.sleep(5) # # # time.sleep(5)
# # # #pv # # # #pv
# # # allEvent().pviaochengxu(i,ip,cid,surl,appkey) # # # allEvent().pviaochengxu(i,ip,cid,surl,appkey)
...@@ -42,67 +42,67 @@ for index in range(1): ...@@ -42,67 +42,67 @@ for index in range(1):
# allEvent().eventchengxu(i,ip,cid,surl,appkey,event) # allEvent().eventchengxu(i,ip,cid,surl,appkey,event)
# for index in range(1): for index in range(1):
# i = ''.join(str(random.choice(range(10))) for _ in range(28)) i = ''.join(str(random.choice(range(10))) for _ in range(28))
# # i = '1761453021140876860117396099' # i = '1761453021140876860117396099'
#
#
# # print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')) # print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
# # 随机生成12为数组 # 随机生成12为数组
# # impressionid = ''.join(str(random.choice(range(10))) for _ in range(12)) # impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
# impressionid = '111222334455667788' impressionid = '97867544365643'
# # requestid = ''.join(str(random.choice(range(10))) for _ in range(12)) # requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
# requestid = '111222334455' requestid = '231231232111'
# accountid = ''.join(str(random.choice(range(10))) for _ in range(12)) accountid = ''.join(str(random.choice(range(10))) for _ in range(12))
# # 随机生成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 = '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)),
# # 'click_time': '1667308011000', # 'click_time': '1667308011000',
# 'wechat_openid': i, # 'wechat_openid': i,
# 'click_id':'123456789', 'click_id':'123456789',
# 'accountid': accountid, 'accountid': accountid,
# 'ip': ip, 'ip': ip,
# 'impression_id': impressionid, 'impression_id': impressionid,
# 'request_id': requestid, # 'request_id': requestid,
# '_ry_adgroup_id': '222', '_ry_adgroup_id': '222',
# '_ry_adplan_id': "222", '_ry_adplan_id': "222",
# '_ry_adcreative_id': '222' '_ry_adcreative_id': '222'
# } }
# # timeout可以超时四秒 # timeout可以超时四秒
# # verify = False # verify = False
# p = requests.get(url=URL, params=parms, timeout=10, verify=False) p = requests.get(url=URL, params=parms, timeout=10, verify=False)
# print('imei:', i) print('imei:', 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)
# # print("oaid:",o) # print("oaid:",o)
# print('success:', s) print('success:', s)
# print(p.status_code) print(p.status_code)
# print(p.content) print(p.content)
# # print('androidid:',a) # print('androidid:',a)
# # print(nowTime) # print(nowTime)
# s = s + 1 s = s + 1
# except Exception as err: except Exception as err:
# print(err) print(err)
# print('wrong:', w) print('wrong:', w)
# print('imei:', i) print('imei:', i)
# print("ip:", ip) print("ip:", ip)
# # print(p.status_code) # print(p.status_code)
# # print('androidid', a) # print('androidid', a)
# w = w + 1 w = w + 1
#
# time.sleep(6) # time.sleep(2)
# try: # try:
# allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, requestid) # allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid)
# #
# except Exception: # except Exception:
# print('install_wrong:', w) # print('install_wrong:', w)
# w = w + 1 # w = w + 1
# # pv # # pv
# time.sleep(2) # time.sleep(2)
...@@ -115,6 +115,6 @@ for index in range(1): ...@@ -115,6 +115,6 @@ for index in range(1):
# time.sleep(2) # time.sleep(2)
# allEvent().loggedinchengxu(i,ip,cid,surl,appkey) # allEvent().loggedinchengxu(i,ip,cid,surl,appkey)
# time.sleep(2) # time.sleep(2)
# allEvent().paymentchengxu(i, ip, cid, surl, appkey) allEvent().paymentchengxu(i, ip, cid, surl, appkey)
# time.sleep(2) # time.sleep(2)
# allEvent().eventchengxu(i, ip, cid, surl, appkey) # allEvent().eventchengxu(i, ip, cid, surl, appkey)
...@@ -33,7 +33,7 @@ isreyundefaultevent = '' ...@@ -33,7 +33,7 @@ isreyundefaultevent = ''
class allEvent: class allEvent:
# 打开小程序 # 打开小程序
def openxiaochengxu(self, i, IP, cid, surl, appid, impressionid, requestid): def openxiaochengxu(self, i, IP, cid, surl, appid, impressionid):
s = json.dumps({ s = json.dumps({
"what": "launch", "what": "launch",
"appid": appid, "appid": appid,
...@@ -44,20 +44,18 @@ class allEvent: ...@@ -44,20 +44,18 @@ class allEvent:
"_openid": i, "_openid": i,
"_campaignid": surl, "_campaignid": surl,
"_sceneid": "434444", "_sceneid": "434444",
"gdt_vid": '1112223344556677', "gdt_vid": impressionid,
"_ry_adgroup_id": "111", "_ry_adgroup_id": "111",
"_ry_adplan_id": "111", "_ry_adplan_id": "111",
"_ry_adcreative_id": "111", "_ry_adcreative_id": "111",
"accountid": "123456", "accountid": "123456",
'impression_id': impressionid,
'request_id': requestid,
# 投放广告详情-头条 # 投放广告详情-头条
"advertiser_id": "333", "advertiser_id": "333",
"ad_id": "333", "ad_id": "333",
"creative_id": "333", "creative_id": "333",
"project_id": "333", "project_id": "333",
"advert_id": "333", "advert_id": "333",
"_apptype": "wg" "_apptype": "wx"
}, },
"where": "launch", "where": "launch",
...@@ -145,8 +143,8 @@ class allEvent: ...@@ -145,8 +143,8 @@ class allEvent:
# 付费 # 付费
def paymentchengxu(self, i, IP, cid, surl, appid): def paymentchengxu(self, i, IP, cid, surl, appid):
transactionid = ''.join(str(random.choice(range(10))) for _ in range(19)) # transactionid = ''.join(str(random.choice(range(10))) for _ in range(19))
# transactionid = '6630524942642751767' transactionid = '352275'
s = json.dumps({ s = json.dumps({
"what": "payment", "what": "payment",
"appid": appid, "appid": appid,
...@@ -156,22 +154,23 @@ class allEvent: ...@@ -156,22 +154,23 @@ class allEvent:
"_deviceid": i, "_deviceid": i,
"_openid": i, "_openid": i,
"_campaignid": surl, "_campaignid": surl,
"_sceneid": "unknown", # "_sceneid": "unknown",
"_apptype": "wg", "_apptype": "wx",
"_num_pages": "5", "_num_pages": "5",
'_transactionid': transactionid, '_transactionid': transactionid,
'_paymenttype': paymenttype, '_paymenttype': paymenttype,
'_currencyamount': '90', '_currencyamount': 6.0,
"_currencytype": currencytype, "_currencytype": currencytype,
"_duration": "10" "_duration": "10"
}, },
"where": "payment", "where": "payment",
"when": when, "when": when,
"ds": ds, "ds": ds,
"who": "lxx-test" "who": "userid001"
}) })
p = requests.post(url=URL, data=s, headers=headers, timeout=5) p = requests.post(url=URL, data=s, headers=headers, timeout=5)
print(p.text) print(p.text)
print(s)
# loggedin # loggedin
def loggedinchengxu(self, i, IP, cid, surl, appid): def loggedinchengxu(self, i, IP, cid, surl, appid):
......
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