Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions jd_wsck.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def subcookie(pt_pin, cookie, token):
strptpin=pt_pin
if re.search('%', strptpin):
strptpin = unquote(strptpin, 'utf-8')
url = 'http://127.0.0.1:5600/api/envs'
url = 'http://127.0.0.1:5700/api/envs'
headers = {'Authorization': f'Bearer {token}'}
body = {
'searchValue': pt_pin,
Expand All @@ -406,7 +406,7 @@ def subcookie(pt_pin, cookie, token):

if old:
put(url, json=body, headers=headers)
url = 'http://127.0.0.1:5600/api/envs/enable'
url = 'http://127.0.0.1:5700/api/envs/enable'
if isline:
body = [body['_id']]
else:
Expand All @@ -426,7 +426,7 @@ def getRemark(pt_pin,token):
strreturn=pt_pin

if token!="":
url = 'http://127.0.0.1:5600/api/envs'
url = 'http://127.0.0.1:5700/api/envs'
headers = {'Authorization': f'Bearer {token}'}
body = {
'searchValue': pt_pin,
Expand Down Expand Up @@ -521,7 +521,7 @@ def main():
auth = file.read()
auth = json.loads(auth)
token = auth["token"]
url = 'http://127.0.0.1:5600/api/envs'
url = 'http://127.0.0.1:5700/api/envs'
headers = {'Authorization': f'Bearer {token}'}
body = {
'searchValue': 'JD_WSCK',
Expand Down Expand Up @@ -565,7 +565,7 @@ def main():
if "fake_" in cookie:
message = f"{newpin}的wskey过期了!"
printf(message)
url = 'http://127.0.0.1:5600/api/envs/disable'
url = 'http://127.0.0.1:5700/api/envs/disable'
try:
body = [data['_id']]
except:
Expand Down Expand Up @@ -638,4 +638,4 @@ def main():
printf(resurt)

if __name__ == '__main__':
main()
main()