Commit 9b8759cd authored by wang's avatar wang

test

parent 9ffe5bb1
......@@ -17,7 +17,7 @@ class Gee():
self.ctx = execjs.compile(open('./src.js').read())
self.cts = 'aylqflYEw3UReF+NHwmVm5NHv9ghECWvoYmzhZeBvKClUmUmfr744onaktuzC9XS'
r = requests.post('http://ymx-lcc.unififi.com/header/borrow', json={
r = requests.post('http://aws-lcc.unififi.com/header/borrow', json={
'brush_type':'cookiePR',
'method': "shopping"
})
......
......@@ -19,13 +19,13 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
def check_pull():
get_url = 'http://ymx-lcc.unififi.com/header/task/pull/cookieTR?brush_name=test'
get_url = 'http://aws-lcc.unififi.com/header/task/pull/cookieTR?brush_name=test'
r = requests.get(get_url)
return r.json()
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={
'name': 'TR',
'type': 'shopping'
......@@ -46,7 +46,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
"brush_proxy": px,
"brush_type": "cookieTR"
}
r = requests.post("http://ymx-lcc.unififi.com/header/add", json=data)
r = requests.post("http://aws-lcc.unififi.com/header/add", json=data)
print(r.json())
......
......@@ -4,7 +4,7 @@ from pyquery import PyQuery
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_fromto": "aaa-bbb",
"method": "shopping"
......@@ -13,7 +13,7 @@ def get_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",
"_id": header['brush_id'],
"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