Commit 4bccd7a2 by 李杨杨

缺字段处理

1 parent ed9a5db6
This file is too large to display.
......@@ -111,7 +111,10 @@ def make_vehicle(event_data_dict):
event_data_dict['CSYS'] = '5'
# 车辆类型
event_data_dict['CLLX'] = event_data_dict['vehicle']['body']['type'].pop('code')
if 'type' in event_data_dict['vehicle']['body']:
event_data_dict['CLLX'] = event_data_dict['vehicle']['body']['type'].pop('code')
else:
event_data_dict['CLLX'] = 'X99'
# 二次识别-号牌类plate
# plate_keys = {'text': 'HPHM1', 'type_code': 'HPZL1', 'color_code': 'HPYS1'}
# replace_Dictkey(event_data_dict['vehicle']['plate'], plate_keys)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!