handle_xx_event bug

This commit is contained in:
曹前明 2022-09-13 18:44:55 +08:00
parent 5a759d2fa4
commit be7f01fd86
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ def loc_change(data):
def handle_xx_event(name: str, data: dict): def handle_xx_event(name: str, data: dict):
# 有绑定对象再提示事件 # 有绑定对象再提示事件
blts = TDevice.objects.filter(code=data['userId']).first() blts = TDevice.objects.filter(code=data['mac']).first()
if blts.employee: if blts.employee:
# 触发事件 # 触发事件
cate = EventCate.objects.filter(code=name).first() cate = EventCate.objects.filter(code=name).first()