超时滞留 bug

This commit is contained in:
曹前明 2022-09-23 11:58:14 +08:00
parent 5e6cb50f6f
commit cc4b4c9365
1 changed files with 4 additions and 4 deletions

View File

@ -432,10 +432,10 @@ def loc_change(data):
# 先通过自定义权限过滤(暂未做)
# 再经过通用设置过滤
code_name = ''
if 0 < stay_minute < area_fix['stay_minute_min']:
# 触发离岗事件
code_name = 'leave_area'
elif area_fix['stay_minute_max'] > 0 and area_fix['stay_minute_max'] < stay_minute:
# if 0 < stay_minute < area_fix['stay_minute_min']:
# # 触发离岗事件
# code_name = 'leave_area'
if area_fix['stay_minute_max'] > 0 and area_fix['stay_minute_max'] < stay_minute:
# 触发超时滞留事件
code_name = 'stand_area'
if code_name: # 2分钟不再次触发