chanjunkai 5 rokov pred
rodič
commit
bfa435679e
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      controller/index.py

+ 1 - 2
controller/index.py

@@ -285,7 +285,7 @@ class oa2RtspStartView(TemplateView):
                 'pwd':PWD,
                 'msg':MSG
             }
-            redisObj.set_data(key=key, val=str(res_json), expire=600)
+            redisObj.set_data(key=key, val=str(res_json), expire=15)
             return JsonResponse(res_json, safe=False)
         else:
             return JsonResponse({'msg': 'wrong'})
@@ -313,7 +313,6 @@ class oa2RtspStartView(TemplateView):
             return True
 
     def runSendStop(self, UID, PWD, MSG):
-        time.sleep(60)
         command = "./pushtool {UID} {PWD} {MSG} 0".format(UID=UID, PWD=PWD, MSG=MSG)
         print('command=>{command}'.format(command=command))
         try: