chanjunkai 5 anni fa
parent
commit
7270b9e0c7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      controller/index.py

+ 1 - 1
controller/index.py

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