chenjunkai il y a 5 ans
Parent
commit
26870b5ce0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      controller/index.py

+ 1 - 1
controller/index.py

@@ -176,7 +176,7 @@ class oa2RtspStartView(TemplateView):
         redisObj = RedisObject(db=9)
         key = '{UID}_rtsp_key'.format(UID=id)
         redis_data = redisObj.get_data(key=key)
-        if redis_data:
+        if redis_data and st == 0:
             print('select by redis data')
             res_json = eval(redis_data)
             return JsonResponse(res_json, safe=False)