mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 09:00:26 +00:00
Update manage.py
This commit is contained in:
parent
5b5289d8de
commit
a68f648ea2
1 changed files with 5 additions and 1 deletions
|
@ -678,7 +678,11 @@ def app_domain_add(app_id, domains):
|
|||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "APP is not exist", "")
|
||||
else:
|
||||
raise CommandException(code, message, "")
|
||||
|
||||
|
||||
old_domains = get_all_domains(app_id)
|
||||
for domain in domains:
|
||||
if domain in old_domains:
|
||||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "Domain is binded", "")
|
||||
proxy = get_proxy(app_id)
|
||||
if proxy != None:
|
||||
domains_old = proxy["domain_names"]
|
||||
|
|
Loading…
Reference in a new issue