Update huaweitest.py

master
wangsiyuan 2024-03-28 10:04:05 +08:00
parent 8cc72f50ee
commit 57714ddd21
1 changed files with 7 additions and 21 deletions

View File

@ -25,26 +25,12 @@ async def getscriparam(request: Request):
formatted_now = now.strftime("%Y-%m-%d %H:%M:%S") formatted_now = now.strftime("%Y-%m-%d %H:%M:%S")
print(f"请求IP地址: {request.client.host},请求时间{formatted_now},请求路径: /script/getscriparam") print(f"请求IP地址: {request.client.host},请求时间{formatted_now},请求路径: /script/getscriparam")
data = { data = {
"interaction": { "interaction": {"from": 20, "to": 30},
"from": 20, "bounceRate": {"from": 0.3, "to": 0.4},
"to": 30 "pagesToViewPerSession": {"from": 2, "to": 3},
}, "sessionsPerUser": {"from": 2, "to": 3},
"bounceRate": { "ctr": {"from": 0.03, "to": 0.05},
"from": 0.3, "shouldDoClick": "true"
"to": 0.4
},
"ctr": {
"from": 0.03,
"to": 0.05
},
"pagesToViewPerSession": {
"from": 2,
"to": 3
},
"sessionsPerUser": {
"from": 2,
"to": 3
}
} }
return data return data