handle_xx_event bug
This commit is contained in:
parent
5a759d2fa4
commit
be7f01fd86
|
@ -477,7 +477,7 @@ def loc_change(data):
|
|||
|
||||
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:
|
||||
# 触发事件
|
||||
cate = EventCate.objects.filter(code=name).first()
|
||||
|
|
Loading…
Reference in New Issue