|
@@ -84,6 +84,7 @@ class loginHandleView(TemplateView):
|
|
format(SERVER_PREFIX=SERVER_PREFIX)
|
|
format(SERVER_PREFIX=SERVER_PREFIX)
|
|
print(auth_request_url)
|
|
print(auth_request_url)
|
|
# auth_request_url = 'http://192.168.136.40:8077/oalexa/auth'
|
|
# auth_request_url = 'http://192.168.136.40:8077/oalexa/auth'
|
|
|
|
+ pwd = str(pwd)
|
|
requests_data = {'userName': user, 'userPwd': pwd}
|
|
requests_data = {'userName': user, 'userPwd': pwd}
|
|
res = requests.post(url=auth_request_url, data=requests_data)
|
|
res = requests.post(url=auth_request_url, data=requests_data)
|
|
print(res.json())
|
|
print(res.json())
|
|
@@ -267,7 +268,6 @@ class oa2RtspStartView(TemplateView):
|
|
# if send_flag:
|
|
# if send_flag:
|
|
# return JsonResponse({'msg': 'stop yes', 'code': 0})
|
|
# return JsonResponse({'msg': 'stop yes', 'code': 0})
|
|
|
|
|
|
-
|
|
|
|
if int(st) == 1:
|
|
if int(st) == 1:
|
|
send_flag = self.runSendStop(UID, PWD, MSG)
|
|
send_flag = self.runSendStop(UID, PWD, MSG)
|
|
if send_flag:
|
|
if send_flag:
|