hrm 人员信息同步

This commit is contained in:
曹前明 2022-06-24 15:51:05 +08:00
parent 925023aa69
commit 765f34d5c6
3 changed files with 22 additions and 3 deletions

View File

@ -15,4 +15,23 @@ class EcmService:
def dispatch_xunxi_event(data:dict):
"""分发寻息事件进行处理
"""
pass
if data.type == 'rail':
if data.data.type == 1:
# 围栏进入
pass
elif data.data.type == 2:
# 围栏离开
pass
elif data.type == 'onKeyAlarm':
# 一键呼救
pass
elif data.type == 'onOffLine':
if data.data.online:
# 标签定位在线
pass
else:
# 标签定位离线
pass
elif data.type == 'lowpower':
# 低电量
pass

View File

@ -75,7 +75,7 @@ class XxListener(stomp.ConnectionListener):
def on_message(self, frame):
data = json.loads(frame.body)
EcmService.dispatch_xunxi_event(data)
print('received a message "%s"' % frame.body)

View File

@ -240,7 +240,7 @@ class MyLoggingMixin(object):
"""
return (
self.logging_methods == "__all__" or request.method in self.logging_methods
) and (response.status_code > 404)
) and (response.status_code not in [401, 403, 404])
def _clean_data(self, data):
"""