Update manage.py

This commit is contained in:
qiaofeng1227 2023-05-11 17:28:34 +08:00 committed by GitHub
parent 16a146df6e
commit 4c36a0b199
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -581,7 +581,7 @@ def app_domain_update(app_id, domains):
if proxy != None:
proxy_id = proxy["id"]
token = get_token()
url = "http:/172.17.0.1:9092/api/nginx/proxy-hosts/" + proxy_id
url = "http:/172.17.0.1:9092/api/nginx/proxy-hosts/" + str(proxy_id)
headers = {
'Authorization': token,
'Content-Type': 'application/json'
@ -611,7 +611,7 @@ def app_domain_update(app_id, domains):
}
requests.put(url, data=json.dumps(data), headers=headers)
set_domain(domain[0], app_id)
set_domain(domains[0], app_id)
return domains
else:
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "App has no proxy", "")