chenjunkai 5 년 전
부모
커밋
26870b5ce0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)