From 794a302cce46dc4710104cc7fe34812f4f625937 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 15 May 2023 16:22:41 +0800 Subject: [PATCH] Update manage.py --- appmanage/api/service/manage.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 328c4463..9da4dec1 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -532,8 +532,16 @@ def app_domain_list(app_id): raise CommandException(code, message, "") domains = get_all_domains(app_id) + ret = {} + ret['domains'] = domains + + default_domain = "" + if len(domains) > 0: + default_domain = domains[0] + ret['default_domain'] = default_domain + + return ret - return domains def app_domain_delete(app_id, domain): code, message = docker.check_app_id(app_id)