From 0ba7b5a564cbceb0e1462f85e4c79fc6b887da4c Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 15 May 2023 13:54:40 +0800 Subject: [PATCH] Update manage.py --- appmanage/api/service/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 203e9f68..e8e884ed 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -622,7 +622,7 @@ def app_domain_update(app_id, domain_old, domain_new): raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "APP is not exist", "") else: raise CommandException(code, message, "") - proxy = get_proxy(app_id) + proxy = get_proxy_domain(app_id, domain_old) if proxy != None: domains_old = proxy["domain_names"] index = domains_old.index(domain_old) @@ -663,7 +663,7 @@ def app_domain_update(app_id, domain_old, domain_new): return domain_new else: - raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "App has no proxy", "") + raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "domain is not binded", "") def app_domain_add(app_id, domains):