Commit 3ce488da by liuxiaoxing

asa归因逻辑

parent ae0de5c7
......@@ -1368,4 +1368,43 @@ def test_asa7():
receiveios.data[0]['asa_info']['iad_info']['iad-org-id'] = '423323'
receiveios.data[0]['asa_info']['adservices_info']['token'] = ''
receiveios.send_request()
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
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