From b9679c586ad7d6fa1eeaeba5bc693e7cc9c7c8f8 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 20 Jul 2020 19:56:46 +0800 Subject: [PATCH] fix a bug --- fir_ser/api/utils/app/supersignutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fir_ser/api/utils/app/supersignutils.py b/fir_ser/api/utils/app/supersignutils.py index 2f74bd9..be0a42e 100644 --- a/fir_ser/api/utils/app/supersignutils.py +++ b/fir_ser/api/utils/app/supersignutils.py @@ -141,7 +141,10 @@ def get_redirect_server_domain(request, user_obj=None): else: domain_name = None if domain_name and len(domain_name) > 3: - server_domain = "%s://%s" % ('http', domain_name) # 第三方域名暂时不支持HTTPS + if domain_name == SERVER_DOMAIN.get("REDIRECT_UDID_DOMAIN").split("//")[1]: + server_domain = SERVER_DOMAIN.get("REDIRECT_UDID_DOMAIN") + else: + server_domain = "%s://%s" % ('http', domain_name) # 第三方域名暂时不支持HTTPS else: server_domain = SERVER_DOMAIN.get('REDIRECT_UDID_DOMAIN', None) if not server_domain or not server_domain.startswith("http"):