Skip to content

Commit cc1a643

Browse files
author
yangmv
committed
edit
1 parent b3ae8e8 commit cc1a643

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/ws/handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,17 @@ async def get(self, *args, **kwargs):
145145
json_data = json.dumps(
146146
dict(
147147
username='yangmingwei',
148-
password='AF6LFjaEsXz2ZVyNX2hyWm',
149-
dynamic='940940'
148+
password='123456',
149+
dynamic=''
150150
)
151151
)
152-
response = await http_client.fetch('http://gw.shinezone.net.cn/accounts/login/',raise_error=False,method='POST',body=json_data,headers=self.request.headers)
152+
response = await http_client.fetch('http://gw.aaa.net.cn/accounts/login/',raise_error=False,method='POST',body=json_data,headers=self.request.headers)
153153
print(response.body)
154154
auth_key = json.loads(response.body).get('auth_key')
155155
self.set_cookie("auth_key","%s"%auth_key)
156156
print(self.request.headers)
157157

158-
response = await http_client.fetch('http://gw.shinezone.net.cn/mg/v2/sysconfig/settings/STORAGE/', raise_error=False,headers=self.request.headers)
158+
response = await http_client.fetch('http://gw.aaa.net.cn/mg/v2/sysconfig/settings/STORAGE/', raise_error=False,headers=self.request.headers)
159159
print(1111)
160160
print(response.body)
161161
ret = {'status':True,'message':None}

startup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#encoding:utf-8
33
'''
44
@author: yangmv
5-
@file: run_server.py
5+
@file: startup.py
66
@time: 18/11/26上午9:44
77
'''
88
import tornado.web

0 commit comments

Comments
 (0)