mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
Update manage.py
This commit is contained in:
parent
17e2311815
commit
e5a0dcc097
1 changed files with 3 additions and 3 deletions
|
@ -562,7 +562,7 @@ def app_domain_delete(app_id):
|
||||||
else:
|
else:
|
||||||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "App has no proxy", "")
|
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "App has no proxy", "")
|
||||||
|
|
||||||
set_domain("", app_id)
|
#set_domain("", app_id)
|
||||||
|
|
||||||
def app_domain_update(app_id, domains):
|
def app_domain_update(app_id, domains):
|
||||||
|
|
||||||
|
@ -611,7 +611,7 @@ def app_domain_update(app_id, domains):
|
||||||
}
|
}
|
||||||
|
|
||||||
requests.put(url, data=json.dumps(data), headers=headers)
|
requests.put(url, data=json.dumps(data), headers=headers)
|
||||||
set_domain(domains[0], app_id)
|
#set_domain(domains[0], app_id)
|
||||||
return domains
|
return domains
|
||||||
else:
|
else:
|
||||||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "App has no proxy", "")
|
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "App has no proxy", "")
|
||||||
|
@ -661,7 +661,7 @@ def app_domain_add(app_id, domains):
|
||||||
}
|
}
|
||||||
|
|
||||||
requests.post(url, data=json.dumps(data), headers=headers)
|
requests.post(url, data=json.dumps(data), headers=headers)
|
||||||
set_domain(domains[0], app_id)
|
#set_domain(domains[0], app_id)
|
||||||
return domains
|
return domains
|
||||||
|
|
||||||
def check_domains(domains):
|
def check_domains(domains):
|
||||||
|
|
Loading…
Reference in a new issue