Explorar el Código

解决推送通道异常

tanghongbin hace 5 años
padre
commit
42d63f2fad
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  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")