mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update manage.py
This commit is contained in:
parent
94b946e509
commit
0ba7b5a564
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue