Pārlūkot izejas kodu

修改redis缓存逻辑

tanghongbin 4 gadi atpakaļ
vecāks
revīzija
b047768419
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      Controller/DetectController.py

+ 3 - 3
Controller/DetectController.py

@@ -115,9 +115,9 @@ class NotificationView(View):
                 return JsonResponse(status=200, data=res_data)
 
             # 此时应该更新一下redis里面的dkey的有效时间
-            detect_interval = redis_list[0]['uid_set__detect_interval']
-            tmp_channel = redis_list[0]['uid_set__channel']
-            self.do_update_detect_interval(uid, tmp_channel, redisObj, detect_interval)
+            # detect_interval = redis_list[0]['uid_set__detect_interval']
+            # tmp_channel = redis_list[0]['uid_set__channel']
+            # self.do_update_detect_interval(uid, tmp_channel, redisObj, detect_interval)
 
         if not redis_list:
             print("没有redi_list")