master
Abbey 5 years ago
parent 54281e256a
commit 8736abc038
  1. 3
      app/admin/base_view.py
  2. 2
      app/admin/install.py
  3. 2
      requirements.txt

@ -18,6 +18,9 @@ import urllib
import signal
import time
from shelljob import proc
import urllib3
urllib3.disable_warnings()
##全局_pid

@ -69,7 +69,7 @@ def install():
if od_type=='cn':
data+='&resource=00000003-0000-0ff1-ce00-000000000000'
url=GetOAuthUrl(od_type)
r=requests.post(url,data=data,headers=headers)
r=requests.post(url,data=data,headers=headers,vefiry=False)
Atoken=json.loads(r.text)
if Atoken.get('access_token'):
with open(os.path.join(config_dir,'data/{}_Atoken.json'.format(user)),'w') as f:

@ -16,3 +16,5 @@ Flask-And-Redis
flask_script
pycrypto
requests[security]
urllib3
pyopenssl

Loading…
Cancel
Save