ソースを参照

新模式pkey问题

WuYiPei 5 年 前
コミット
2c8ba2d4f7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -50,7 +50,6 @@ class NotificationView(View):
         uidToken = request_dict.get('uidToken', None)
         etk = request_dict.get('etk', None)
         channel = request_dict.get('channel', '1')
-        channel = request_dict.get('channel', '1')
         n_time = request_dict.get('n_time', None)
         event_type = request_dict.get('event_type', None)
         is_st = request_dict.get('is_st', None)
@@ -116,6 +115,7 @@ class NotificationView(View):
                 detect_group_list = detect_group.split(',')
                 if event_type in detect_group_list:
                     redisObj.set_data(key=dkey, val=1, expire=detect_interval)
+                redisObj.set_data(key=pkey, val=1, expire=60)
         # 旧模式并且没有pkey,重新创建一个
         if not detect_group and not have_pkey:
             # 设置推送时间为60秒一次