From 9719d531d3920c9b292a3db9b66a8880af1f22c5 Mon Sep 17 00:00:00 2001 From: tamguo Date: Mon, 26 Nov 2018 16:40:50 +0800 Subject: [PATCH] fix bug --- .../src/main/resources/templates/book/book.html | 2 +- .../src/main/resources/templates/book/document.html | 2 +- .../src/main/resources/templates/include/footer.html | 12 ++++++++++++ tamguo-bms/src/main/resources/templates/index.html | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tamguo-bms/src/main/resources/templates/book/book.html b/tamguo-bms/src/main/resources/templates/book/book.html index 2a777bb..476a05d 100644 --- a/tamguo-bms/src/main/resources/templates/book/book.html +++ b/tamguo-bms/src/main/resources/templates/book/book.html @@ -3,7 +3,7 @@ - 探果网 + 探果网 diff --git a/tamguo-bms/src/main/resources/templates/book/document.html b/tamguo-bms/src/main/resources/templates/book/document.html index edb65f0..f878bcd 100644 --- a/tamguo-bms/src/main/resources/templates/book/document.html +++ b/tamguo-bms/src/main/resources/templates/book/document.html @@ -1,7 +1,7 @@ - 测试项目类型 - 探果网 + 测试项目类型 - 探果网 diff --git a/tamguo-bms/src/main/resources/templates/include/footer.html b/tamguo-bms/src/main/resources/templates/include/footer.html index ebf16af..f54ee38 100644 --- a/tamguo-bms/src/main/resources/templates/include/footer.html +++ b/tamguo-bms/src/main/resources/templates/include/footer.html @@ -57,4 +57,16 @@ var _hmt = _hmt || []; s.parentNode.insertBefore(hm, s); })(); +(function(){ + var bp = document.createElement('script'); + var curProtocol = window.location.protocol.split(':')[0]; + if (curProtocol === 'https') { + bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; + } + else { + bp.src = 'http://push.zhanzhang.baidu.com/push.js'; + } + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(bp, s); +})(); \ No newline at end of file diff --git a/tamguo-bms/src/main/resources/templates/index.html b/tamguo-bms/src/main/resources/templates/index.html index 9b2a392..e033bca 100644 --- a/tamguo-bms/src/main/resources/templates/index.html +++ b/tamguo-bms/src/main/resources/templates/index.html @@ -9,7 +9,7 @@ - +