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)