Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tkio-test-case
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuxiaoxing
tkio-test-case
Commits
3ce488da
Commit
3ce488da
authored
May 27, 2022
by
liuxiaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asa归因逻辑
parent
ae0de5c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
attributioncaseios.py
microservices/attributioncaseios.py
+40
-0
No files found.
microservices/attributioncaseios.py
View file @
3ce488da
...
@@ -1369,3 +1369,42 @@ def test_asa7():
...
@@ -1369,3 +1369,42 @@ def test_asa7():
receiveios
.
data
[
0
][
'asa_info'
][
'adservices_info'
][
'token'
]
=
''
receiveios
.
data
[
0
][
'asa_info'
][
'adservices_info'
][
'token'
]
=
''
receiveios
.
send_request
()
receiveios
.
send_request
()
print
(
i
)
print
(
i
)
# iad归因为空,tkoen不为空但是token是错误的,走正常归因逻辑
def
test_asa8
():
i
=
idfacode
()
v
=
idfvcode
()
receiveios
.
data
[
0
][
'device_info'
][
'idfa'
]
=
i
receiveios
.
data
[
0
][
'device_info'
][
'idfa_md5'
]
=
computeMD5
(
i
)
receiveios
.
data
[
0
][
'device_info'
][
'idfv'
]
=
v
receiveios
.
data
[
0
][
'device_info'
][
'idfv_md5'
]
=
computeMD5
(
v
)
receiveios
.
data
[
0
][
'device_info'
][
'device_id'
]
=
i
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5'
]
=
computeMD5
(
i
)
receiveios
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'idfa'
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5_type'
]
=
'idfa_md5'
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5_type'
]
=
'idfa_md5'
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-attribution'
]
=
'true'
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-org-id'
]
=
''
receiveios
.
data
[
0
][
'asa_info'
][
'adservices_info'
][
'token'
]
=
'kv1FiGQJnzzZdnQpDq4g3fnXT4z3Q7tBH/0j43lYIJoT25QzNbez/gIrU4fQ/EFrpw3xo7QNTKFjhRv9WqTYISBmOYVgM1Qf6QAAAVADAAAAwgAAAIAy/g+7t1Q14p7B88Q/IEQRPm3fRmGIEQYjqoyPcmXCbmfkWhFYlI7tGalXnOiaVTG+42C4rCPK4aGTVTGvVC51BpDbaYEmzirAUa7Zx1250iaO6rVqnR+70dQ/4rqUr9Y3xIeYFxZTzlO5balJR8p6tFH9JebQN5cnS6iYvW2HFwAAABtCe4TJZstJGHhzx1mZwoH/DshcQUzoEw3CWsQAAACfAQq+ciM0JRGNd8IRMms27Jv9NoGLAAAAhgIG6Ob8mQt05KAOunoU2GRA8WKLioF8Znqe2X5Wfy8sEzg4zM30ZKQIvcAXPZPcIAaWP4pbi2ud87ABIW4Z8Sa8QnGSqMYbZ99Z3mYFHP81vVEDEglXyL8/jvFf49mZKa9HE4bIKu7KzGQ9BiAMxFujG9LPMKEBVnS5vai3CqdjZ0e5SUfYAAAAAAABBEYNAgA='
receiveios
.
send_request
()
print
(
i
)
# iad归因为空,tkoen不为空且token正确-返回ads归因为false(非测试数据)
def
test_asa9
():
i
=
idfacode
()
v
=
idfvcode
()
receiveios
.
data
[
0
][
'device_info'
][
'idfa'
]
=
i
receiveios
.
data
[
0
][
'device_info'
][
'idfa_md5'
]
=
computeMD5
(
i
)
receiveios
.
data
[
0
][
'device_info'
][
'idfv'
]
=
v
receiveios
.
data
[
0
][
'device_info'
][
'idfv_md5'
]
=
computeMD5
(
v
)
receiveios
.
data
[
0
][
'device_info'
][
'device_id'
]
=
i
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5'
]
=
computeMD5
(
i
)
receiveios
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'idfa'
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5_type'
]
=
'idfa_md5'
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5_type'
]
=
'idfa_md5'
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-attribution'
]
=
''
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-org-id'
]
=
'1234321'
receiveios
.
data
[
0
][
'asa_info'
][
'adservices_info'
][
'token'
]
=
'/uCODngkP2bfsOpiWj3Q4JWvx6dmJEiTR/FfpY0xMuouweoKUWwn+ALDeMZ2+5ihfKGoxyEXFVzn1ch1xu2kk7R4xIWng4SUIQAAAVADAAAAnwAAAIBIN+L3PPnC3mZ+jIeIf+hB/rhMn82ER6CJwIwYJxU0B2O4Q/1KXJQGzD+QJzL3J+LNAyACyT2aUWVhhbGKZfvCLJzr3vAMObtbIUC9H3dWnBfgVB8iYfnjo044dXj91mgleA1HYYZiIaolUKH0jnWx/oGnYB8u0kYihT40rUbZWwAAABzDaguAs337EhcpBDlig2UD+5cFxj6wU9gUPJ4/AAAAnwHxuacYGJWMa2ddMRsdWjhxq0uXmQAAAIYJBPMT42aNI8GHrOL3MMHllrlikCUNPxATYRC+isFRKcGP8lpJViUEAt1Mqf2ttO/z9rNHHs8eULJ7FddDAV8CiTD/yB42HjQaJz+t6pOpBGHKuvn6BIfanN7rC0+ZiANrBaRFVosBLwrLUiSsRqsX3YmEs/TWLbsiKeeoLU6kwAlJtNd7fwAAAAABBEYXAAA='
receiveios
.
send_request
()
print
(
i
)
\ 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