Browse Source

dkey加通道

WuYiPei 5 years ago
parent
commit
58d5e1aca1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -70,7 +70,7 @@ class NotificationView(View):
             uid = utko.UID
             uid = utko.UID
         pkey = '{uid}_{channel}_ptl'.format(uid=uid, channel=channel)
         pkey = '{uid}_{channel}_ptl'.format(uid=uid, channel=channel)
         ykey = '{uid}_redis_qs'.format(uid=uid)
         ykey = '{uid}_redis_qs'.format(uid=uid)
-        dkey = '{uid}_{event_type}_flag'.format(uid=uid, event_type=event_type)
+        dkey = '{uid}_{channel}_{event_type}_flag'.format(uid=uid, event_type=event_type, channel=channel)
         # 判断redisObj.get_data(key=pkey):不为空
         # 判断redisObj.get_data(key=pkey):不为空
         redisObj = RedisObject(db=6)
         redisObj = RedisObject(db=6)
         have_ykey = redisObj.get_data(key=ykey)  # uid_set 数据库缓存
         have_ykey = redisObj.get_data(key=ykey)  # uid_set 数据库缓存