Update huaweitest.py

master
wangsiyuan 2024-04-24 17:35:21 +08:00
parent 29a0404643
commit 7a195da164
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ 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")
language_list = ["English (United States)", "Spanish (Mexico)", "English (United Kingdom)", "English (Australia)"]
data = {
"interaction": {"from": 20, "to": 30},
"bounceRate": {"from": 0.3, "to": 0.4},
@ -36,6 +37,7 @@ async def getscriparam(request: Request):
"shouldDoClick": "true",
"shouldExecute": "true",
"shouldBounce": "false",
"languageFullName": random.choice(language_list),
}
return data