chanjunkai 5 年之前
父節點
當前提交
167ee30931
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controller/index.py

+ 3 - 3
controller/index.py

@@ -199,10 +199,10 @@ class oa2RtspStartView(TemplateView):
         redisObj = RedisObject(db=9)
         key = '{UID}_rtsp_key'.format(UID=id)
         redis_data = redisObj.get_data(key=key)
-        redis_data = redisObj.del_data(key=key)
+        #redis_data = redisObj.del_data(key=key)
         print(st)
-        # if redis_data and st == 0:
-        if redis_data:
+        if redis_data and st == 0:
+        #if redis_data:
             print('select by redis data')
             # time.sleep(3)
             res_json = eval(redis_data)