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

+ 5 - 5
controller/index.py

@@ -198,11 +198,11 @@ class oa2RtspStartView(TemplateView):
         redisObj = RedisObject(db=9)
         key = '{UID}_rtsp_key'.format(UID=id)
         redis_data = redisObj.get_data(key=key)
-        if redis_data and st == 0:
-            print('select by redis data')
-            # time.sleep(3)
-            res_json = eval(redis_data)
-            return JsonResponse(res_json, safe=False)
+        # if redis_data and st == 0:
+        #     print('select by redis data')
+        #     # time.sleep(3)
+        #     res_json = eval(redis_data)
+        #     return JsonResponse(res_json, safe=False)
         if access_token == '6ovF9wiXm7su9YXO67PSOkrEPb2LIOf1':
             print('pass yes')
             user_qs = UserModel.objects.filter(userID='154483823297313800138000')