Commit aabfa62a authored by wang's avatar wang

test

parent 1b505ca3
...@@ -22,14 +22,14 @@ if not pathlib.Path('nacos-data/snapshot/').exists(): ...@@ -22,14 +22,14 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
def check_pull(): def check_pull():
get_url = 'http://ymx-lcc.unififi.com/header/task/pull/cookiePR?brush_name=test' get_url = 'http://aws-lcc.unififi.com/header/task/pull/cookiePR?brush_name=test'
r = requests.get(get_url) r = requests.get(get_url)
print(r.json()) print(r.json())
return r.json() return r.json()
def get_proxy(): def get_proxy():
get_proxy_url = 'http://ymx-lcc.unififi.com/proxy/get-proxy' get_proxy_url = 'http://aws-lcc.unififi.com/proxy/get-proxy'
r = requests.post(get_proxy_url, json={ r = requests.post(get_proxy_url, json={
'name': 'PR', 'name': 'PR',
'type': 'shopping' 'type': 'shopping'
...@@ -50,7 +50,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0,log=None): ...@@ -50,7 +50,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0,log=None):
"brush_proxy": px, "brush_proxy": px,
"brush_type": "cookiePR" "brush_type": "cookiePR"
} }
r = requests.post("http://ymx-lcc.unififi.com/header/add", json=data) r = requests.post("http://aws-lcc.unififi.com/header/add", json=data)
log.info(r.json()) log.info(r.json())
......
...@@ -4,7 +4,7 @@ from pyquery import PyQuery ...@@ -4,7 +4,7 @@ from pyquery import PyQuery
def get_header(): def get_header():
r = requests.post('http://ymx-lcc.unififi.com/header/borrow', json={ r = requests.post('http://aws-lcc.unififi.com/header/borrow', json={
"brush_type": "cookieAS", "brush_type": "cookieAS",
"brush_fromto": "aaa-bbb", "brush_fromto": "aaa-bbb",
"method": "shopping" "method": "shopping"
...@@ -13,7 +13,7 @@ def get_header(): ...@@ -13,7 +13,7 @@ def get_header():
def return_header(header): def return_header(header):
r = requests.post('http://ymx-lcc.unififi.com/header/return', json={ r = requests.post('http://aws-lcc.unififi.com/header/return', json={
"brush_type": "cookieTR", "brush_type": "cookieTR",
"_id": header['brush_id'], "_id": header['brush_id'],
"status": 0, "status": 0,
......
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