Update huaweitest.py

This commit is contained in:
2024-03-28 10:04:05 +08:00
parent 8cc72f50ee
commit 57714ddd21

View File

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