Update huaweitest.py
parent
29a0404643
commit
7a195da164
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue