Commit f41d717b by zhaihuitao

add install enevt

parent 267191ef
......@@ -12,6 +12,9 @@ import random
class randomUtil:
def __init__(self):
pass
def randip(self):
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
return ip
......
......@@ -7,11 +7,14 @@
"""
import time
from config.envcfg import prod
from common import randomUtil
params_install = {
"what":'install',
"appid": "9b17c1568c3ce34599c5fd2778483ff9",
"appid": prod['events']['appkey'],
"context": {
"_carrier": "中国联通",
"_network_type": "5G",
......@@ -19,7 +22,7 @@ params_install = {
"_model": "test1",
"_pkgname": "com.yanjing.yami",
"_campaignid": 'default',
"_deviceid": "CFFEF74E-B6BF-BD16-E7F8-DFDBFF5FB6E1",
"_deviceid": randomUtil.r.randimei(),
"_imei": "cffef74e-b6bf-bd16-e7f8-dfdbff5fb6e1",
# "_idfa": 'DBC13622-E34B-440C-B7A7-FB6641D0D9AB',
# "_androidid": "43214532142142",
......@@ -79,4 +82,6 @@ params_startup = {
# 'when': when,
# 'ds': ds,
'who': 'lxx_test'
}
\ No newline at end of file
}
print(params_install)
\ No newline at end of file
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