We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加模板和修改模板,页面会加载下面的js
但get_curl()函数会把域名和端口号都返回回来 function get_curl() { $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://'; return $http_type.$_SERVER['HTTP_HOST']; }
导致当我把nginx的80端口修改为 8988的时候,添加模板的那段js就变成了 10.10.7.3:8988:8000/web-apps/...../.js
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
添加模板和修改模板,页面会加载下面的js
<script type="text/javascript" src="{$get_curl}:8000/web-apps/apps/api/documents/api.js"></script>但get_curl()函数会把域名和端口号都返回回来
function get_curl()
{
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
return $http_type.$_SERVER['HTTP_HOST'];
}
导致当我把nginx的80端口修改为 8988的时候,添加模板的那段js就变成了 10.10.7.3:8988:8000/web-apps/...../.js
<script type="text/javascript" src="10.10.7.3::8988:8000/web-apps/apps/api/documents/api.js"></script>The text was updated successfully, but these errors were encountered: