check_miss_lcard bug

This commit is contained in:
曹前明 2022-09-24 12:26:25 +08:00
parent 561bc92c4a
commit efacae0549
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ def check_miss_lcard(ep: Employee, area: Area):
blt_list = res['recordList']
macs = [] # 所有该区域在线标签
for i in blt_list:
macs.append(i['mac'])
macs.append(i['userId'])
td = TDevice.objects.filter(type=TDevice.DEVICE_BLT, employee=ep).first()
if td:
if td.code not in macs: