tanghongbin 4 年之前
父节点
当前提交
453b5f58b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -67,7 +67,7 @@ class NotificationView(View):
         else:
         else:
             utko = UidTokenObject(uidToken)
             utko = UidTokenObject(uidToken)
             uid = utko.UID
             uid = utko.UID
-        pkey = '{uid}_{channel}_ptl'.format(uid=uid, event_type=event_type, channel=channel)
+        pkey = '{uid}_{channel}_{event_type}_ptl'.format(uid=uid, event_type=event_type, channel=channel)
         # ykey = 'MUJ887NLR8K8GBM9111A_redis_qs'.format(uid=uid)
         # ykey = 'MUJ887NLR8K8GBM9111A_redis_qs'.format(uid=uid)
         ykey = '{uid}_redis_qs'.format(uid=uid)
         ykey = '{uid}_redis_qs'.format(uid=uid)
         dkey = '{uid}_{channel}_{event_type}_flag'.format(uid=uid, event_type=event_type, channel=channel)
         dkey = '{uid}_{channel}_{event_type}_flag'.format(uid=uid, event_type=event_type, channel=channel)