mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
删除360SEO的js报错
This commit is contained in:
parent
f0d9d5bf8a
commit
3de7167727
@ -88,6 +88,12 @@
|
||||
<version>4.5.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-configuration</groupId>
|
||||
<artifactId>commons-configuration</artifactId>
|
||||
<version>1.10</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-mail</artifactId>
|
||||
|
@ -1,7 +1,9 @@
|
||||
package xyz.zinglizingli.books.core.listener;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.configuration.PropertiesConfiguration;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.event.ContextRefreshedEvent;
|
||||
@ -22,8 +24,15 @@ public class StartListener implements ApplicationListener<ContextRefreshedEvent>
|
||||
@Value("${crawl.book.new.enabled}")
|
||||
private String crawlEnable;
|
||||
|
||||
@Value("${website.name}")
|
||||
private String webSiteName;
|
||||
|
||||
@SneakyThrows
|
||||
@Override
|
||||
public void onApplicationEvent(ContextRefreshedEvent event) {
|
||||
PropertiesConfiguration conf = new PropertiesConfiguration("messages.properties");
|
||||
conf.setProperty("website.name", webSiteName);
|
||||
conf.save();
|
||||
if (!Constants.ENABLE_NEW_BOOK.equals(crawlEnable.trim())) {
|
||||
log.info("程序启动");
|
||||
new Thread(() -> {
|
||||
|
@ -1,3 +1,6 @@
|
||||
website:
|
||||
name: 笔趣阁新书门
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
|
@ -10,10 +10,4 @@
|
||||
<div style="float: right"><a href="#top"><i class="layui-icon"
|
||||
style="margin-right:15px;font-size: 30px;color:#92B8B1 "></i></a>
|
||||
</div>
|
||||
<script>
|
||||
(function(){
|
||||
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?0f3ae8a0c8948025da914c98d5773654":"https://jspassport.ssl.qhimg.com/11.0.1.js?0f3ae8a0c8948025da914c98d5773654";
|
||||
document.write('<script src="' + src + '" id="sozz"><\/script>');
|
||||
})();
|
||||
</script>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user