修复路口指标查询接口bug

This commit is contained in:
wangxu 2025-10-28 17:46:36 +08:00
parent 8030756d29
commit 1e91c867d6
2 changed files with 4 additions and 3 deletions

View File

@ -355,6 +355,7 @@ def gen_cross_static_info(crossid, nodeid, area_id, cross_ledger_info_dict):
for dir in dir_list: for dir in dir_list:
dir_length = roads[dir]['topology']['entry']['road_length'] dir_length = roads[dir]['topology']['entry']['road_length']
straight_left_split, reverse_turn, left_turn_waiting_area, straight_turn_waiting_area, reversible_lanes_info, outside_left = 0, 0, 0, 0, 0, 0 straight_left_split, reverse_turn, left_turn_waiting_area, straight_turn_waiting_area, reversible_lanes_info, outside_left = 0, 0, 0, 0, 0, 0
if dir in src_light_dict.keys():
if 2 in src_light_dict[dir] and (1 in src_light_dict[dir] or 3 in src_light_dict[dir]): if 2 in src_light_dict[dir] and (1 in src_light_dict[dir] or 3 in src_light_dict[dir]):
straight_left_split = 1 straight_left_split = 1
if roads[dir]['canaliza']['reverse_turn'] == 1: if roads[dir]['canaliza']['reverse_turn'] == 1:

View File

@ -15,7 +15,7 @@ dbname = tmnet
[server] [server]
# 本机服务配置 # 本机服务配置
;host = localhost ;host = localhost
port = 9090 port = 9091
[redis] [redis]
ip = 101.42.25.182 ip = 101.42.25.182