|
@@ -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秒一次
|