Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interfaceTest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
zhaihuitao
interfaceTest
Commits
f41d717b
Commit
f41d717b
authored
Aug 17, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
267191ef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
workspace.xml
.idea/workspace.xml
+0
-0
randomUtil.py
common/randomUtil.py
+3
-0
params.py
config/prod/params.py
+9
-4
No files found.
.idea/workspace.xml
View file @
f41d717b
This diff is collapsed.
Click to expand it.
common/randomUtil.py
View file @
f41d717b
...
...
@@ -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
...
...
config/prod/params.py
View file @
f41d717b
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment