Explorar el Código

还原缓存15秒,新增写死的msg

chanjunkai hace 5 años
padre
commit
9fa68e483b
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      controller/index.py

+ 3 - 2
controller/index.py

@@ -258,11 +258,12 @@ class oa2RtspStartView(TemplateView):
                 'protocols': ['RTSP'],
                 'authorizationTypes': ['NONE'],
                 'uri': rtsp_uri,
-                'msg': send_flag
+                #'msg': send_flag
+                'msg': "Step 1: call IOTC_Initialize2(),ret = 0\n\t\tUID:HVTLKFJM6KDTAF9J111A\n\t\tPWD:admin\n\t\tMSG:rtsp://rtsp.zositech.xyz:443/elNGWlVURXRHU2swMlMwUlVRVVk1U2pFeE1VRT1M\n\t\tCMD:1\nStep 2: call IOTC_Connect_ByUIDEx(HVTLKFJM6KDTAF9J111A).......\n\t\tavIndex = 0 pnServType = 0 pnResend  = 1\nStep 3: sendioc msg...ret1=0\n\t\tmsg send yes\nStep 4: receive msg...ret2=1\n\t\topen rtsp pusher succ\n       totile time=7.264000\n"
 
             }
             # time.sleep(1.5)
-            redisObj.set_data(key=key, val=str(res_json), expire=60)
+            redisObj.set_data(key=key, val=str(res_json), expire=15)
             return JsonResponse(res_json, safe=False)
         else:
             return JsonResponse({'msg': 'wrong'})