hrm 人员信息同步
This commit is contained in:
parent
925023aa69
commit
765f34d5c6
|
@ -15,4 +15,23 @@ class EcmService:
|
||||||
def dispatch_xunxi_event(data:dict):
|
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
|
|
@ -75,7 +75,7 @@ class XxListener(stomp.ConnectionListener):
|
||||||
|
|
||||||
def on_message(self, frame):
|
def on_message(self, frame):
|
||||||
data = json.loads(frame.body)
|
data = json.loads(frame.body)
|
||||||
|
EcmService.dispatch_xunxi_event(data)
|
||||||
print('received a message "%s"' % frame.body)
|
print('received a message "%s"' % frame.body)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ class MyLoggingMixin(object):
|
||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
self.logging_methods == "__all__" or request.method in self.logging_methods
|
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):
|
def _clean_data(self, data):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue