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

端口列表显示错误问题修复

parent ed5e14e0
Pipeline #22364 passed with stage
in 22 seconds
......@@ -141,28 +141,37 @@ where B.default_version=1'''
app_list = []
for app_str in app_str_list:
_dict = {}
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 = {}
_dict['app_code'] = app_code
_dict['status'] = '未测试'
_dict['port'] = api_port
app_list.append(_dict)
api_port2 = app_dict.get('api_port2')
if api_port2:
_dict = {}
_dict['app_code'] = app_code
_dict['status'] = '未测试'
_dict['port'] = api_port2
app_list.append(_dict)
web_port = app_dict.get('web_port')
if web_port:
_dict = {}
_dict['app_code'] = app_code
_dict['status'] = '未测试'
_dict['port'] = web_port
app_list.append(_dict)
web_port2 = app_dict.get('web_port2')
if web_port2:
_dict = {}
_dict['app_code'] = app_code
_dict['status'] = '未测试'
_dict['port'] = web_port2
app_list.append(_dict)
......
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