Commit d51e9dc5 authored by 金凯强's avatar 金凯强 🎨

修改状态

parent faec2864
Pipeline #22327 failed with stage
in 11 seconds
......@@ -145,6 +145,7 @@ where B.default_version=1'''
app_dict = json.loads(app_str, encoding='utf8')
app_code = app_dict.get('app_code')
_dict['app_code'] = app_code
_dict['status'] = '未测试'
api_port = app_dict.get('api_port')
if api_port:
_dict['port'] = api_port
......@@ -177,9 +178,9 @@ where B.default_version=1'''
info_dict['app_code'] = port_info['app_code']
try:
self.test_connect_port(host_ip, port_info['port'])
info_dict['success'] = True
info_dict['status'] = '测试通过'
except Exception:
info_dict['success'] = False
info_dict['status'] = '测试失败'
info_list.append(info_dict)
return info_list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment