|
|
@ -141,6 +141,9 @@ def get_redirect_server_domain(request, user_obj=None): |
|
|
|
else: |
|
|
|
else: |
|
|
|
domain_name = None |
|
|
|
domain_name = None |
|
|
|
if domain_name and len(domain_name) > 3: |
|
|
|
if domain_name and len(domain_name) > 3: |
|
|
|
|
|
|
|
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 |
|
|
|
server_domain = "%s://%s" % ('http', domain_name) # 第三方域名暂时不支持HTTPS |
|
|
|
else: |
|
|
|
else: |
|
|
|
server_domain = SERVER_DOMAIN.get('REDIRECT_UDID_DOMAIN', None) |
|
|
|
server_domain = SERVER_DOMAIN.get('REDIRECT_UDID_DOMAIN', None) |
|
|
|