|
@@ -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:
|