Quellcode durchsuchen

修改缓存key

zhangdongming vor 2 Jahren
Ursprung
Commit
ebc37f45aa
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Controller/DetectControllerV2.py

+ 2 - 2
Controller/DetectControllerV2.py

@@ -76,9 +76,9 @@ class NotificationV2View(View):
             ykey = '{uid}_redis_qs'.format(uid=uid)
             is_sys_msg = self.is_sys_msg(int(event_type))
             if is_sys_msg:
-                dkey = '{uid}_{channel}_{event_type}_flag'.format(uid=uid, channel=channel, event_type=event_type)
+                dkey = 'push_{uid}_{channel}_{event_type}_flag'.format(uid=uid, channel=channel, event_type=event_type)
             else:
-                dkey = '{uid}_{channel}_flag'.format(uid=uid, channel=channel)
+                dkey = 'push_{uid}_{channel}_flag'.format(uid=uid, channel=channel)
 
             redisObj = RedisObject(db=6)
             have_ykey = redisObj.get_data(key=ykey)  # uid_set 数据库缓存