Skip to content

Commit

Permalink
Update ceshgi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
feller2021 authored Jun 19, 2023
1 parent 9cdb29b commit 3f71fe1
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions ceshgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,17 @@ def shangchuang():
"Connection": 'close'
}
with requests.Session() as up:
r = up.post(url, data=m,
headers=headers, timeout=(20,120))
# r = up.post(url, data=m,
# headers=headers, timeout=(7,120),verify=False)


try:
r = up.post(url, data=m,
headers=headers, timeout=(7,120),verify=False)

except:
r = up.post(url, data=m,
headers=headers, timeout=(7,120),verify=False)
res=r.text
jsonobj = json.loads(res)
msg=jsonobj['msg']
Expand All @@ -109,8 +118,16 @@ def shangchuang():
"Connection": 'close'
}
with requests.Session() as up:
r = up.post(url, data=m,
headers=headers, timeout=(20,120))
# r = up.post(url, data=m,
# headers=headers, timeout=(7,120),verify=False)
try:
r = up.post(url, data=m,
headers=headers, timeout=(7,120),verify=False)

except:
r = up.post(url, data=m,
headers=headers, timeout=(7,120),verify=False)

res=r.text
jsonobj = json.loads(res)
msg=jsonobj['msg']
Expand Down

0 comments on commit 3f71fe1

Please sign in to comment.