Files
DzzOffice/core/template/default/common/footer_system.htm
2024-07-29 14:44:06 +08:00

60 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--{eval output();}-->
<!--{eval updatesession();}-->
<!--{if debuginfo()}-->
<script type="text/javascript">
try{
if(console && console.log){
console.log('Processed in $_G[debuginfo][time] second(s), $_G[debuginfo][queries] queries <!--{if $_G[gzipcompress]}-->, Gzip On<!--{/if}--><!--{if C::memory()->type}-->, <!--{echo ucwords(C::memory()->type)}--> On<!--{/if}-->.');
}
}catch(e){}
</script>
<!--{/if}-->
<!--{if !$_G['setting']['bbclosed']}-->
<!--{if !isset($_G['cookie']['sendmail'])}-->
<script type="text/javascript" src="misc.php?mod=sendmail&rand=$_G[timestamp]"></script>
<!--{/if}-->
<script type="text/javascript" src="misc.php?mod=sendwx&rand=$_G[timestamp]"></script>
<!--{/if}-->
<!--{if $_G['setting']['statcode']}-->
$_G['setting']['statcode']
<!--{/if}-->
<script type="text/javascript">
// 全局错误处理
$(document).ready(function() {
// 设置jQuery全局的Ajax错误处理
$.ajaxSetup({
error: function(xhr, textStatus, errorThrown) {
var errorMsg = "Ajax Error: " + textStatus + ", " + errorThrown;
showmessage(errorMsg, 'error', 3000, 1);
}
});
<!--{if $_G['setting']['addEventListener']}-->
window.addEventListener('error', function(event) {
handleErrors(event);
}, true);
<!--{/if}-->
});
<!--{if $_G['setting']['addEventListener']}-->
function handleErrors(event) {
try {
// 检查是否存在错误对象
if (event.error && event.error.stack) {
const stack = event.error.stack;
// 过滤或脱敏stack信息根据需要实现
reportError(stack);
showmessage(stack, 'error', 3000, 1);
}
} catch (error) {
// 对reportError和showmessage的调用进行了异常捕获
console.error("Failed to report or show error:", error);
}
}
<!--{/if}-->
</script>
<script type="text/javascript" src="static/js/popper.min.js?{VERHASH}"></script>
<script type="text/javascript" src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
<script type="text/javascript" src="static/js/main.min.js?{VERHASH}"></script>
<script type="text/javascript" src="static/js/lyear-loading.js?{VERHASH}"></script>
</body>
</html>