<!-- 安全相关的脚本 -->


{% if xconfig.WebConfig.force_https %}
<script type="text/javascript">
    // 强制跳转HTTPS
    if (window.location.protocol == "http:") {
        window.location.protocol = "https:";
    }
</script>
{% end %}