From cc4b4c9365941e5b2b36830600f30c5fac2a922b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Fri, 23 Sep 2022 11:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E6=97=B6=E6=BB=9E=E7=95=99=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ecm/service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/ecm/service.py b/apps/ecm/service.py index 5dc71af5..58c34e32 100644 --- a/apps/ecm/service.py +++ b/apps/ecm/service.py @@ -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分钟不再次触发