Pārlūkot izejas kodu

解决推送通道异常

tanghongbin 5 gadi atpakaļ
vecāks
revīzija
42d63f2fad
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 1 0
      .gitignore
  2. 2 2
      Controller/DetectController.py

+ 1 - 0
.gitignore

@@ -14,3 +14,4 @@
 /sdk_install
 /DB/mydata4vipday2.ipdb
 /__pycache__/*.pyc
+/venv

+ 2 - 2
Controller/DetectController.py

@@ -110,8 +110,8 @@ class NotificationView(View):
 
             # 此时应该更新一下redis里面的dkey的有效时间
             detect_interval = redis_list[0]['uid_set__detect_interval']
-            channel = redis_list[0]['uid_set__channel']
-            self.do_update_detect_interval(uid, channel, redisObj, 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")