Commit f2bfb1cd authored by wang's avatar wang

test

parent 3a506e98
......@@ -19,7 +19,7 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
def check_pull():
get_url = 'http://aws-lcc.unififi.com/header/task/pull/cookieTR?brush_name=test'
get_url = 'http://aws-lcc.unififi.com/header/task/pull/cookieHV?brush_name=test'
r = requests.get(get_url)
return r.json()
......@@ -27,7 +27,7 @@ def check_pull():
def get_proxy():
get_proxy_url = 'http://aws-lcc.unififi.com/proxy/get-proxy'
r = requests.post(get_proxy_url, json={
'name': 'TR',
'name': 'HV',
'type': 'shopping'
})
return r.json()
......@@ -44,7 +44,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
"brush_header": headers,
"brush_name": f"reverse_{thread_id}",
"brush_proxy": px,
"brush_type": "cookieTR"
"brush_type": "cookieHV"
}
r = requests.post("http://aws-lcc.unififi.com/header/add", json=data)
print(r.json())
......
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