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)