|
@@ -259,7 +259,7 @@ class oa2RtspStartView(TemplateView):
|
|
|
'msg':send_flag
|
|
|
}
|
|
|
# time.sleep(1.5)
|
|
|
- redisObj.set_data(key=key, val=str(res_json), expire=15)
|
|
|
+ redisObj.set_data(key=key, val=str(res_json), expire=30)
|
|
|
return JsonResponse(res_json, safe=False)
|
|
|
else:
|
|
|
return JsonResponse({'msg': 'wrong'})
|
|
@@ -268,7 +268,8 @@ class oa2RtspStartView(TemplateView):
|
|
|
request_url = 'http://localhost:5000/?UID={UID}&MSG={MSG}&CMD=1&PWD={PWD}'.\
|
|
|
format(UID=UID,PWD=PWD,MSG=MSG)
|
|
|
res = requests.get(url=request_url)
|
|
|
- return
|
|
|
+ print(res)
|
|
|
+ return True
|
|
|
def runSendRtspMsg(self, UID, PWD, MSG):
|
|
|
# return True
|
|
|
command = "./pushtool {UID} {PWD} {MSG} 1".format(UID=UID, PWD=PWD, MSG=MSG)
|