Commit 1569c1f8 董杰

获取状态信息代码修改

1 个父辈 5c17678b
正在显示 1 个修改的文件 包含 3 行增加3 行删除
...@@ -412,7 +412,7 @@ def getagvinfo(): ...@@ -412,7 +412,7 @@ def getagvinfo():
current_agv = Config.CONFIG_AGV current_agv = Config.CONFIG_AGV
info_agv = [] info_agv = []
for info in ele_json: for info in ele_json:
if (info['msgKey'])[9:11] == '号车': if (info['name'])[-2:] == '号车':
if info['type'] == 0: if info['type'] == 0:
state = '异常' state = '异常'
else: else:
...@@ -440,7 +440,7 @@ def get4cinfo(): ...@@ -440,7 +440,7 @@ def get4cinfo():
current_4c = Config.CONFIG_4C current_4c = Config.CONFIG_4C
info_4c = [] info_4c = []
for info in ele_json: for info in ele_json:
if info['msgKey'][8:9] == 'G': if info['msgKey'][8:9] == 'C':
if info['type'] == 0: if info['type'] == 0:
state = '异常' state = '异常'
else: else:
...@@ -467,7 +467,7 @@ def get4dinfo(): ...@@ -467,7 +467,7 @@ def get4dinfo():
current_4d = Config.CONFIG_4D current_4d = Config.CONFIG_4D
info_4d = [] info_4d = []
for info in ele_json: for info in ele_json:
if info['msgKey'][8:9] == 'E': if info['msgKey'][8:9] == 'D':
if info['type'] == 0: if info['type'] == 0:
state = '异常' state = '异常'
else: else:
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!