Commit f41d717b by zhaihuitao

add install enevt

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